Displaying 1 result from an estimated 1 matches for "bookmark_pag".
Did you mean:
bookmark_pages
2006 Mar 03
1
Pagination and custom routing
...This works fine and sends them to the correct controller, links, where
the action per_user paginates a list of bookmarks depending on the
username defined by :username in the map.connect above.
The action that generates the pages looks like this -
user = User.find_by_login(@params[:username])
@bookmark_pages, @bookmarks = paginate(:bookmarks, :conditions =>
[''user_id = ?'', user.id])
The first page of results works fine, i can type www.mysite.com/dave for
instance, and i recieve the first page of my bookmarks.
The problem is with the rest of the pages, the link to page 2 appea...