# ActionController::NotImplemented (Only requests are allowed.)

**URL:** <https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584>\
**Category:** Rails\
**Created:** [March 11, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584 "2008-03-11T16:51:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![csvy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@csvy](https://www.ruby-forum.com/u/csvy)\
**Post date:** [March 11, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584/1 "2008-03-11T16:51:54Z")

</div>

We have a bunch of strange entries in our error log, and don’t know  
exactly what they mean:  
The errors are as follows

ActionController::NotImplemented (Only requests are allowed.):  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
routing.rb:1437:in `recognize_path' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1424:in`recognize’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
dispatcher.rb:170:in `handle_request' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in`dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
dispatcher.rb:126:in `dispatch_cgi' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in`dispatch’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in`synchronize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
rails.rb:74:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 159:in`process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
158:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in`process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
285:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in`initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
285:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
268:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in`new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
268:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:282:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
configurator.rb:281:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel\_rails:128:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ command.rb:212:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel\_rails:281  
/usr/bin/mongrel\_rails:19:in `load’  
/usr/bin/mongrel\_rails:19

We got an error report from a user that file uploading on our site was  
not working, but we could not reproduce the error… could this error  
in the error log be related?

---

<div class="post-metadata">

**Author:** ![csvy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@csvy](https://www.ruby-forum.com/u/csvy)\
**Post date:** [March 11, 2008, 5:07pm UTC](https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584/2 "2008-03-11T17:07:57Z")

</div>

In case it helps, I’m also seeing this error, not sure if it is  
related though

/!\ FAILSAFE /!\ Mon Mar 10 22:51:17 -0700 2008  
Status: 500 Internal Server Error  
propfind, accepted HTTP methods are delete, head, get, options,  
post, and put  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
request.rb:26:in `request_method' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ request.rb:35:in`method’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
routing.rb:1483:in `extract_request_environment' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1424:in`recognize’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
dispatcher.rb:170:in `handle_request' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in`dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action\_controller/  
dispatcher.rb:126:in `dispatch_cgi' /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in`dispatch’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in`synchronize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
rails.rb:74:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 159:in`process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
158:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in`process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
285:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in`initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
285:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
268:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in`new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel.rb:  
268:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:282:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/…/lib/mongrel/  
configurator.rb:281:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel\_rails:128:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ command.rb:212:in`run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel\_rails:281  
/usr/bin/mongrel\_rails:19:in `load’  
/usr/bin/mongrel\_rails:19

---

<div class="post-metadata">

**Author:** ![csvy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@csvy](https://www.ruby-forum.com/u/csvy)\
**Post date:** [March 12, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584/3 "2008-03-12T16:35:27Z")

</div>

More info:  
Its unrelated to the uploading issue, and that’s been fixed, but these  
are still showing up in the logs  
Any help would be appreciated 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![csvy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@csvy](https://www.ruby-forum.com/u/csvy)\
**Post date:** [March 26, 2008, 1:40am UTC](https://www.ruby-forum.com/t/actioncontroller-notimplemented-only-requests-are-allowed/131584/4 "2008-03-26T01:40:46Z")

</div>

csvy, What was the request that triggered the NotImplemented exception  
– the lines preceding the error in the log?

I’ve seen this error happen when an HTTP OPTIONS method is requested of  
the server, and for us this happened when IE tries to load a MS Office  
file (in my case an xls). Are you serving any such files from your app.

Let’s say you have a static xls sitting under  
/static/some-spreadsheet.xls. Well, IE/Excel attempts an HTTP OPTIONS  
request on the /static/ path. This causes similar behavior to what  
you’re seeing.

The fix that I employed was to configure the exception\_notifiable plugin  
to treat NotImplemented exceptions as 404 errors, because all we cared  
about was avoiding the exception emails every time an IE user launched  
Excel.
