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

@@ -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