How do you set accept headers in remote_function?

How do I set the accept header for an AJAX request from the
remote_function helper? I’ve tried everything I can think of but no
dice.

<%= remote_function(

:requestHeaders => { :Accept => “application/xml” },

) %>

What I want:
new Ajax.Request(url, {

requestHeaders: { “Accept” : “application/xml”},

});

Thanks in advance

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs