The change in revision 3953 (http://dev.rubyonrails.org/changeset/3953) seems to have broken some AJAX helpers for me. In a test view .rhtml file, <%= link_to_remote ''blah'', :url => { :action => "test", :param1 => ''A'', :param2 => ''B''} %> produces <a href="#" onclick="new Ajax.Request(''/test/test?param2=B&amp;param1=A'', {asynchronous:true, evalScripts:true}); return false;">blah</a> (notice the "&amp;" between parameters, rather than just "&", or "&") This HTML escaping is wreaking havoc with the ampersand character used to seperate parameters, and giving rise to ''amp'' parameters in the params Hash. Seeing as this seems to be quite a deliberate change, was this behaviour expected? Can anyone else reproduce this? - james -- * J * ~
Nicholas Seckar
2006-Mar-22 19:45 UTC
Re: Changeset 3953 breaks link_to_remote/AJAX helpers
Thanks; checked in a fix in [4014]. There will probably be more double escaping of & issues cropping up... I''ll do a search later this evening. If you notice any more before then, send me an email and I''ll fix them asap.