Does Ruby on Rails have a standard mechanism of adding a param to current URL and removing one? <p>That is, if the current URL of the page is</p> <pre><code>http://www.foo.com/products/?q=fruit&amp;order=ascending </code></pre> <p>then a way to link to a URL without the <code>order</code> param, and a way to link to a URL with an added param, such as <code>page=2</code></p> <p>(note that we can't just append <code>&amp;page=2</code> to it, because what if the current URL has no <code>?</code>, then adding the <code>&amp;</code> like that won't work)</p>