fixed post listing

This commit is contained in:
albert
2011-06-21 13:10:01 -04:00
parent 07f8dba7f2
commit fab37bc0d3
8 changed files with 80 additions and 56 deletions

View File

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