Forum: Ruby on Rails Names routes double escape html?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
328f0bb678423fcea01ebe3b0edc74e6?d=identicon&s=25 Ben Johnson (benjohnson)
on 2007-03-08 08:16
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(/&amp;/, '&')
) %>

Notice the .gsub(/&amp;/, '&').

I have to do this otherwise I get params["amp;arg1"] instead of
params["arg1"].

Any ideas why it's double escaping?

Thanks for the help.
This topic is locked and can not be replied to.