This commit is contained in:
albert
2011-06-21 12:20:22 -04:00
parent 8a7597bc98
commit 07f8dba7f2
22 changed files with 262 additions and 468 deletions

View File

@@ -1,6 +1,5 @@
class PostVersionsController < ApplicationController
def index
@search = PostVersion.search(params[:search])
@post_versions = @search.paginate(:page => params[:page], :order => "updated_at DESC")
@search = PostVersion.search(params[:search]).paginate(params[:paginate])
end
end

View File

@@ -4,9 +4,8 @@ class PostsController < ApplicationController
respond_to :html, :xml, :json
def index
@post_set = PostSets::Base.new(params)
extend_post_set(@post_set)
respond_with(@post_set)
@posts = Post.search(params[:search]).paginate(params[:page])
respond_with(@posts)
end
def show