# Rails - MethodNotAllowed Error

**URL:** <https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446>\
**Category:** Ruby\
**Created:** [March 10, 2009, 1:45am UTC](https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446 "2009-03-10T01:45:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayce\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Jayce\_M](https://www.ruby-forum.com/u/Jayce_M)\
**Post date:** [March 10, 2009, 1:45am UTC](https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446/1 "2009-03-10T01:45:47Z")

</div>

Hello all,

```
I'm sorry, I'm having issues subscribing to the Rails mailing list, 

```

so I’m hoping someone here will be able to help me. Below is an error I  
continuously get whilst using Rails, however I do not know the cause…  
The error description seems simple enough, but I have yet to identify  
what is actually causing it. Can anyone help me?

- Jayce  
ActionController::MethodNotAllowed  
Only get, head, post, put, and delete requests are allowed.RAILS\_ROOT:  
/home/school/etc/rails\_apps/main

/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action\_controller/routing/recognition\_optimisation.rb:65:in  
`recognize_path' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/route_set.rb:384:in`recognize’  
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action\_controller/dispatcher.rb:148:in  
`handle_request' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in`dispatch’  
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action\_controller/dispatcher.rb:104:in  
`synchronize' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in`dispatch’  
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action\_controller/dispatcher.rb:120:in  
`dispatch_cgi' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in`dispatch’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:76:in  
`process' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in`synchronize’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/rails.rb:74:in  
`process' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:159:in`process\_client’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in `each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:158:in`process\_client’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in`initialize’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in `new' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:285:in`run’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in  
`initialize' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in`new’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel.rb:268:in `run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:282:in`run’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in  
`each' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:281:in`run’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel\_rails:128:in  
`run' /usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/command.rb:212:in`run’  
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel\_rails:281  
/usr/bin/mongrel\_rails:19:in `load’  
/usr/bin/mongrel\_rails:19

---

<div class="post-metadata">

**Author:** ![Jayce\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Jayce\_M](https://www.ruby-forum.com/u/Jayce_M)\
**Post date:** [March 11, 2009, 1:49pm UTC](https://www.ruby-forum.com/t/rails-methodnotallowed-error/162446/2 "2009-03-11T13:49:28Z")

</div>

Jayce M. wrote:

> ```
> I'm sorry, I'm having issues subscribing to the Rails mailing list, 
> 
> ```

Try joining [groups.google.com](http://groups.google.com), as this is very specifically a problem  
you’re having with Rails.

> Only get, head, post, put, and delete requests are allowed.RAILS\_ROOT:  
> /home/school/etc/rails\_apps/main
> 
> /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action\_controller/routing/recognition\_optimisation.rb:65:in  
> `recognize\_path’

There’s very good info there. If you don’t understand why it is doing  
this, add some debugging lines of the form

STDERR.puts “foo = #{foo.inspect}”

around the point where the error is being raised as required. Rails  
makes this sort of debugging especially easy by allowing you to ‘freeze’  
the current version into your project, so you can make local  
modifications without touching the system version.
