I am trying to get this working by following the tutorial at:
and the railscast at
http://railscasts.com/episodes/205-unobtrusive-javascript
..in both cases I am having the same problem. The controller is not rendering the .js template (it is falling back to .html) because the request header isn't requesting javascript like it should be.
I am using the jquery ujs from github and jquery 1.4.4
The "data-remote=true" attribute is being supplied to the form like it is supposed to be. But for some reason this isn't modifying the request.
If I switch to prototype.js it works (with the default prototype.js and rails.js from rails).
I am using rails 3.0.0
Any suggestions appreciated.