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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s