Exception: ActionController::MethodNotAllowed
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ActionControllerError,
StandardError
|
|
|
Instance Chain:
self,
ActionControllerError,
StandardError
|
|
| Inherits: |
ActionController::ActionControllerError
|
| Defined in: | actionpack/lib/action_controller/metal/exceptions.rb |
Class Method Summary
- .new(*allowed_methods) ⇒ MethodNotAllowed constructor
Constructor Details
.new(*allowed_methods) ⇒ MethodNotAllowed
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 53
def initialize(*allowed_methods) super("Only #{allowed_methods.to_sentence} requests are allowed.") end