Exception: ActionController::MethodNotAllowed
- Inherits:
-
ActionControllerError
- Object
- StandardError
- ActionControllerError
- ActionController::MethodNotAllowed
- Defined in:
- actionpack/lib/action_controller/metal/exceptions.rb
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) allowed_methods
readonly
Returns the value of attribute allowed_methods.
Instance Method Summary (collapse)
-
- (MethodNotAllowed) initialize(*allowed_methods)
constructor
A new instance of MethodNotAllowed.
Constructor Details
- (MethodNotAllowed) initialize(*allowed_methods)
A new instance of MethodNotAllowed
19 20 21 |
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 19 def initialize(*allowed_methods) super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.") end |
Instance Attribute Details
- (Object) allowed_methods (readonly)
Returns the value of attribute allowed_methods
17 18 19 |
# File 'actionpack/lib/action_controller/metal/exceptions.rb', line 17 def allowed_methods @allowed_methods end |