Rails routes, URLs Examples Overwrite params for the current URL: = link_to "Title", url_for params.merge(:format => "PDF", :page => nil) add param to current url =link_to t, url_for(request.parameters.merge(newparam: 'val'))