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
params["arg1"].
Any ideas why it''s double escaping?
Thanks for the help.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---