Send 405 response for ActionController::UnknownHttpMethod exceptions
gem install http_method_not_allowed_middleware
require 'http_method_not_allowed_middleware'
Rails.application.config.middleware.instance_eval do
insert_before(0, HttpMethodNotAllowedMiddleware)
end
Ryan Clemente
[email protected]
Adrian Bordinc
[email protected]
License: MIT