Names routes double escape html?

Is anyone else having this problem?

<%= link_to_function(
“Some link”,
“alert(‘some action here’);” + remote_function(:url =>
named_route_url(:arg1 => “test”, :arg2 => “test”)).gsub(/&/, ‘&’)
) %>

Notice the .gsub(/&/, ‘&’).

I have to do this otherwise I get params[“amp;arg1”] instead of

Any ideas why it’s double escaping?

Thanks for the help.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs