method
new
v2.3.8 -
Show latest stable
- Class:
ActionController::MethodNotAllowed
new(*allowed_methods)public
No documentation available.
# File actionpack/lib/action_controller/base.rb, line 24
def initialize(*allowed_methods)
super("Only #{allowed_methods.to_sentence(:locale => :en)} requests are allowed.")
@allowed_methods = allowed_methods
end