This commit is contained in:
albert
2011-06-29 12:47:40 -04:00
parent 4e19d98047
commit 5cf122c2e0
14 changed files with 96 additions and 76 deletions

View File

@@ -15,7 +15,7 @@ class PoolsController < ApplicationController
def index
@search = Pool.search(params[:search])
@pools = @search.paginate(:page => params[:page])
@pools = @search.paginate(params[:page])
respond_with(@pools)
end
@@ -25,9 +25,7 @@ class PoolsController < ApplicationController
def show
@pool = Pool.find(params[:id])
@post_set = PostSets::Base.new(:id => @pool, :page => params[:page])
@post_set.extend(PostSets::Numbered)
@post_set.extend(PostSets::Pool)
@post_set = PostSets::Pool.new(@pool, params[:page])
respond_with(@pool)
end