class ActionController::MethodNotAllowed

def initialize(*allowed_methods)

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