Exception: ActionController::MethodNotAllowed

Inherits:
ActionControllerError show all
Defined in:
lib/action_controller/metal/exceptions.rb

Overview

:nodoc:

Direct Known Subclasses

NotImplemented

Instance Method Summary collapse

Constructor Details

#initialize(*allowed_methods) ⇒ MethodNotAllowed

Returns a new instance of MethodNotAllowed.



27
28
29
# File 'lib/action_controller/metal/exceptions.rb', line 27

def initialize(*allowed_methods)
  super("Only #{allowed_methods.to_sentence(locale: :en)} requests are allowed.")
end