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;amp;param1=A',
{asynchronous:true, evalScripts:true}); return false;">blah</a>

(notice the "&amp;amp;" between parameters, rather than just "&", or "&amp;")

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 *
  ~
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to