Getting Rails3 working with Jquery

I’ve been playing around with Rails 3 over the weekend and the changes made with the usage of Protoype and Jquery and the handling of :delete requests with Javascript got me a bit confused so incase your using Jquery and wondering why those DELETE requests show up as GET requests on the server log try having a look at RailsCasts episode 205 and read through the setup with jquery here .

If you’ve added the Jquery file already chances are that your rails.js file is missing or your still using the one from the prototype set. Sorting that out should get you back on track.

Hope this helps

 

Advertisements