Skip to content

"Only get, head, post, put, and delete requests are allowed. Ruby on Rails error"

Posted on 10 October 2008

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.

View the snippets archive ››

2 comments made

Jonathan Towell commented on 10 Oct 08 at 17:13

I get the same thing when I change the routes file. Specifically, when the route for the resource I’m accessing has changed.

Will Green commented on 13 Oct 08 at 06:56

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?

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