Add querystring parameters to link_to
Posted
by Craig
on Stack Overflow
See other posts from Stack Overflow
or by Craig
Published on 2010-04-23T01:01:53Z
Indexed on
2010/04/23
3:23 UTC
Read the original article
Hit count: 443
ruby-on-rails
|querystring
I'm having difficultly adding querystring parameters to link_to UrlHelper. I have an Index view, for example, that has UI elements for sorting, filtering, and pagination (via will_paginate). The will_paginate plugin manages the intra-page persistence of querystring parameters correctly.
Is there an automatic mechanism to add the querystring parameters to a give named route, or do I need to do so manually? A great deal of research on this seemingly simple construct has left me clueless.
© Stack Overflow or respective owner