Is there some trick to using pagination with a component? Shouldn''t it
just
work?
I am using <%= pagination_links(@accomodation_pages) %> in my view and
this
correctly creates the page links but clicking them simply always loads the
first page.
I can see the SQL and it''s only grabbing the first 20.
Here''s my controller code.
What am I doing wrong?
def item_list
@accomodation_pages, @accomodations = paginate :accomodation,
:per_page => 20
render :layout => false
end
It seems to my feeble mind that I am on the right track but I am having
issues.
Is there a chance the ''page'' param isn''t being passed
to the code in the
render_component?
Hunter