rails/rails — pull request #10299 by lmars (2013-04-22 12:53:38+00:00)
Title: Use MethodNotAllowed exception rather than UnknownHttpMethod

Raising a MethodNotAllowed exception will cause a 405 response to be
sent to the client, rather than a 500 response due to an uncaught
exception