"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.

Comments left...

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

    Jonathan Towell at 10 Oct 08 at 17:13

  • 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…

    Will Green at 13 Oct 08 at 06:56

Got something to say?