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.
#37: make url_for() generate a URL for the current page including GET params
Solved!
If you just use
escape option
- kueda on April 17, 2009, 12:45 AM UTC
Use the escape option:
url_for(request.query_parameters.merge(:escape => false))