Pagination routing syntax

Caleb Tennis
Fri, 25 Mar 2005 13:18:50 -0000

I''ve got a pagination_links call that creates a link like this:

<%= pagination_links(@device_pages) %>

generates

http://URL/device/list?page=1

but

<%= pagination_links(@device_pages, :params => { "sort_by" =>
"foo" } ) %>

generates the same link above.  Instead, I''d like to have:

http://URL/device/list?page=1&sort_by=foo

Am I just misunderstaning how to structure my options to the pagination_links
call?

Thanks,
Caleb