A bit of a softball question, but my Google Fu escapes me at the moment.
How do I link to the current page but then specify params to be merged into the query string?
For instance, if the current page is /resources
, I want to be able to specify something like current_page_plus(:param => 'attribute')
that evaluates out to /resources?param=attribute
.
This would hopefully also merge with existing attributes, so if the current page was /resources?a=b&c=d
, then current_page_plus(:c => 'e')
would evaluate to /resources?a=b&c=e
.