fixes to user search

This commit is contained in:
albert
2013-02-21 12:42:41 -05:00
parent 762bbd2caf
commit 78f1d0f69a
24 changed files with 48 additions and 30 deletions

View File

@@ -64,7 +64,7 @@ private
def index_by_note
@search = Note.search(params[:search])
@notes = @search.paginate(params[:page])
@notes = @search.order("id desc").paginate(params[:page])
respond_with(@notes) do |format|
format.html {render :action => "index_by_note"}
end