static public Method

MethodNotAllowed.new(*allowed_methods)

There's no documentation for this item.

Source Code

# File action_controller/base.rb, line 37
def initialize(*allowed_methods)
  super("Only #{allowed_methods.to_sentence} requests are allowed.")
  @allowed_methods = allowed_methods
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.