This commit is contained in:
albert
2011-07-09 03:32:18 -04:00
parent 085995126c
commit a16dfdf0dd
14 changed files with 75 additions and 48 deletions

View File

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