This commit is contained in:
albert
2011-06-25 16:33:30 -04:00
parent 1ad075c05a
commit 28d179708f
18 changed files with 113 additions and 23 deletions

View File

@@ -52,7 +52,7 @@ private
end
def index_by_post
@posts = Post.tag_match(params[:tags]).noted_before(params[:before_date] || Time.now).limit(8)
@posts = Post.tag_match(params[:tags]).noted_before(params[:before_date] || Time.now).paginate(params[:page])
respond_with(@posts) do |format|
format.html {render :action => "index_by_post"}
end
@@ -60,7 +60,7 @@ private
def index_by_note
@search = Note.search(params[:search])
@notes = @search.paginate(:page => params[:page])
@notes = @search.paginate(params[:page])
respond_with(@notes) do |format|
format.html {render :action => "index_by_note"}
end