Rails - MethodNotAllowed Error

J

Jayce Meade

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=20
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/rout=
ing/recognition_optimisation.rb:65:in `recognize_path'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rout=
ing/route_set.rb:384:in `recognize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.rb:148:in `handle_request'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.rb:107:in `dispatch'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.rb:104:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.rb:104:in `dispatch'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.rb:120:in `dispatch_cgi'
/usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/disp=
atcher.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:2=
82:in `run'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:2=
81:in `each'
/usr/lib64/ruby/gems/1.8/gems/mongrel-1.1.3/lib/mongrel/configurator.rb:2=
81: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
 
B

Brian Candler

Jayce said:
I'm sorry, I'm having issues subscribing to the Rails mailing list,

Try joining 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top