fixes #987
This commit is contained in:
@@ -5,7 +5,7 @@ class FavoritesController < ApplicationController
|
||||
if params[:tags]
|
||||
redirect_to(posts_path(:tags => params[:tags]))
|
||||
else
|
||||
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page])
|
||||
@favorite_set = PostSets::Favorite.new(CurrentUser.user, params[:page], params)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ private
|
||||
end
|
||||
|
||||
def index_by_note
|
||||
@notes = Note.search(params[:search]).order("id desc").paginate(params[:page], :search_count => params[:search])
|
||||
@notes = Note.search(params[:search]).order("id desc").paginate(params[:page], :limit => params[:limit], :search_count => params[:search])
|
||||
respond_with(@notes) do |format|
|
||||
format.html {render :action => "index_by_note"}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user