search for: list_dishes

Displaying 1 result from an estimated 1 matches for "list_dishes".

2006 Mar 05
0
Pagination + pretty URLs
Hello all. I want to make pagination URLs pretty instead of the ?page=2. I have written a route like this: map.connect ''restaurant/list_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_p...