class ActionController::MethodNotAllowed
def initialize(*allowed_methods)
def initialize(*allowed_methods) super("Only #{allowed_methods.to_sentence} requests are allowed.") end
def initialize(*allowed_methods) super("Only #{allowed_methods.to_sentence} requests are allowed.") end