Displaying 1 result from an estimated 1 matches for "dish_pages".
Did you mean:
dest_pages
2006 Mar 05
0
Pagination + pretty URLs
...dishes/:page'',
:controller => ''restaurant'',
:action => ''list_dishes'',
:requirements => { :page => /\d+/},
:page => nil
Which appears to work. However the following only retrieves the first 10
records.
def list_dishes
@dish_pages, @dishes = paginate :dishes, :conditions => "visible =
TRUE", :per_page => 10
end
Now there is no explicit page list there but the fact it works without
the above route means there must be some magic going on that I now need
to make manual. What I don''t know is what nee...