Some content in my page is loaded dynamically with the use of this code :
javascript_tag( remote_function( :update => agenda_dom_id, :url => agenda_items_url(options), :method => :get ) )
When it outputs in the browser, it comes out as this :
new Ajax.Updater('agenda', 'http://localhost:3000/agenda_items?company=43841&history=true', {asynchronous:true, evalScripts:true, method:'get'})
The & character in the URL is replaced by &
and so the second parameter of the request is discarded.
I made different tests and it looks as if Rails tries to make the HTML entities conversion as soon as it detects that the code is in a script tag. And trying to hardcode the link or the javascript tag didn`t change anything.
Anybody encountered this problem before?