work
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user