Forum: Ruby on Rails Names routes double escape html?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben J. (Guest)
on 2007-03-08 09: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

Any ideas why it's double escaping?

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