Is there some trick to using pagination with a component? 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 I tried to search the mailing list but Gmane seems to be down.
Is there some trick to using pagination with a component? 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 I tried to search the mailing list but Gmane seems to be down.