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