This commit is contained in:
albert
2012-02-20 14:25:50 -05:00
parent 3e648f553e
commit 3eb06a43c4
3 changed files with 5 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ class ForumPostsController < ApplicationController
def index
@search = ForumPost.search(params[:search])
@forum_posts = @search.paginate(params[:page])
@forum_posts = @search.paginate(params[:page]).order("forum_posts.id desc")
respond_with(@forum_posts)
end