"Only get, head, post, put, and delete requests are allowed. Ruby on Rails error"
Every so often I get the rather odd Ruby on Rails error "Only get, head, post, put, and delete requests are allowed."
So far, each time a simple restart of my local server has done the trick and made it go away.
About
Paul is a Rails developer for Kyan web agency in Guildford, Surrey, UK.
More snippets
Take a look in the archive
Need a website?
Get in touch with me at my name at gmail.com or contact my employer.
Hosting
I recommend hostingrails.com
Contact
my name at gmail.com
2 comments made
I get the same thing when I change the routes file. Specifically, when the route for the resource I’m accessing has changed.
Happens to me with models that use attachment_fu, that have a Word document attachment. Seems that Word attempts to make an OPTIONS request for more info on the file, probably something that SharePoint supports. No need to restart, but I do get the nice little exception_notification email…
Got something to say?