# Only get, head, post, put, and delete requests are allowed

**URL:** <https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921>\
**Category:** Rails\
**Created:** [April 26, 2008, 10:49am UTC](https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921 "2008-04-26T10:49:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![qertoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/7ab992/32.png) [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Post date:** [April 26, 2008, 10:49am UTC](https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921/1 "2008-04-26T10:49:40Z")

</div>

Rails REVISION\_9248 (edge before 2.1)

Sometimes I get a very strange exception:

"  
ActionController::MethodNotAllowed

Only get, head, post, put, and delete requests are allowed.  
"

Notice that _all_ HTTP methods are allowed but still the current one is  
“not allowed”.

Restarting the server helps for a while. Then the problem recurs.

---

<div class="post-metadata">

**Author:** ![qertoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/7ab992/32.png) [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Post date:** [May 5, 2008, 11:02am UTC](https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921/2 "2008-05-05T11:02:48Z")

</div>

I’m also getting this with edge 9250.

The map.root route doesn’t seem to work correctly, I can view it fine  
if the controller is specified.

On Apr 26, 4:49 am, Piotr W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![qertoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/7ab992/32.png) [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Post date:** [May 5, 2008, 11:42am UTC](https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921/3 "2008-05-05T11:42:26Z")

</div>

I’ve no idea what the problem might be, but in case you didn’t know,  
you’re not working with the latest edge, you’re working with edge from  
3 weeks ago (at which point rails development moved over to git).

Fred

---

<div class="post-metadata">

**Author:** ![qertoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/7ab992/32.png) [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Post date:** [May 7, 2008, 6:28am UTC](https://www.ruby-forum.com/t/only-get-head-post-put-and-delete-requests-are-allowed/135921/4 "2008-05-07T06:28:22Z")

</div>

Ah, is there an updated rake task to pull from the git repo instead? A  
quick search didn’t turn up anything.

-Zach

On May 5, 5:41 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
