#37: make url_for() generate a URL for the current page including GET params

If you just use url_for() in a view, it will generate the url corresponding to the controller/action/id that generated, but it will leave out the precious GET params.

escape option

Use the escape option:

url_for(request.query_parameters.merge(:escape => false))

Think you've got a better solution? Help 148c663fd665c53518538e093ce3c2ab_small kueda out by posting your solution