Hi,
I am trying to generate a link to external site with GET parameters
( in new window).
I tried following code, but it does not produce any parameters.
if you are using a string option (rather than a hash parameter to
url_for) you need to go string all the way, and if you are using url_for
(which takes a hash) you need you need to go hash all the way
You’ve seen that you can’t use url_for like this. In addition, you
should use Hash#to_query to create the query string and then escape
the HTML. This protects your link from XSS vulnerabilities and the
like: