Exception: ActionController::MethodNotAllowed
- Inherits:
-
ActionControllerError
- Object
- StandardError
- ActionControllerError
- ActionController::MethodNotAllowed
- Defined in:
- actionpack/lib/action_controller/metal/exceptions.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(*allowed_methods) ⇒ MethodNotAllowed
constructor
A new instance of MethodNotAllowed.
Constructor Details
#initialize(*allowed_methods) ⇒ MethodNotAllowed
Returns a new instance of MethodNotAllowed.
32 33 34 |
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 32 def initialize(*allowed_methods) super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.") end |