Saturday, May 15, 2010

Re: [Rails] Re: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options

On Fri, May 14, 2010 at 7:20 PM, jemminger <jemminger@gmail.com> wrote:
> Still getting a slew of these on one of my sites.  Annoying, because
> you can't seem to trap it with the normal rescue_from in
> application_controller, as Rails seems to intercept this exception
> before it ever makes it that far up the chain.

Seems like this might be a good use case for a Rack filter: intercept
the bad request earlier and discard/log/whatever...

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate