search for: paginating_link

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

Did you mean: paginating_links
2008 Dec 09
2
paginating_find losing scope
...g the context of the array it''s paginating. For example, URL: http://localhost:3000/companies/1/users/1 <% @tickets = @user.tickets.find(:all, page => {:size => 10, :current => params[:page]}) %> <% for ticket in @tickets %> ... <% end %> <%= paginating_links (@tickets) %> The problem is ''paginating_links'' is spitting out pagination URLs that look like: http://localhost:3000/users/1?page=2 instead of: http://localhost:3000/companies/1/users/1?page=2 Any ideas why it''s losing the context of the company? Thank you!...