From f3fcb4bafbbf64a2907724d9c90362e9d22aacd5 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 19 Feb 2013 14:37:29 -0500 Subject: [PATCH] fix --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 68d5e26b7..350e7881a 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -70,7 +70,7 @@ private end def index_by_comment - @comments = Comment.search(params[:search]).order("comments.id desc").paginate(params[:page]) + @comments = Comment.search(params[:search]).order("comments.id DESC").paginate(params[:page]) respond_with(@comments) do |format| format.html {render :action => "index_by_comment"} end