Ajax sends PUT for updates, Rails complains that it's POST :(

Hi,
I am not sure what is happening… But suddenly my apps in Rails
started behaving weirdly. Non of the Ajax PUT requests are received as
PUT anymore and instead Rails complains that I am sending POST… I
also noticed that instead of the correct module, for example PUT
request is sent via Ajax to /server/sections/3, and the error is
thrown at the level of rails application.

ActionController::MethodNotAllowed (Only get, put, and delete requests
are allowed.)

I would like to know what the heck is going on here and how to fix
this… Any insightful ideas are welcome.

Thanks so much,
Elle

On Jun 23, 2011, at 5:00 PM, sc-kitten wrote:

I would like to know what the heck is going on here and how to fix
this… Any insightful ideas are welcome.

Are you sure your JavaScript librar(y|ies) loaded correctly? Did you
disable JavaScript in your browser during testing?

Walter

What is your JS code for sending the request?

2011/6/24 Walter Lee D. [email protected]

It must be a problem with your routes. Can you share your routes.rb