post histories finished

This commit is contained in:
albert
2010-11-06 12:16:24 -04:00
parent f3b4312ef3
commit 190beedb7a
13 changed files with 125 additions and 31 deletions

View File

@@ -1,6 +1,6 @@
class PostHistoriesController < ApplicationController
def index
@search = PostHistory.search(params[:search])
@histories = @search.paginate(:page => params[:page], :per_page => 20)
@histories = @search.paginate(:page => params[:page], :per_page => 20, :order => "updated_at DESC")
end
end