https://github.com/rcclemente/http_method_not_allowed_middleware
Send 405 response for ActionController::UnknownHttpMethod exceptions
https://github.com/rcclemente/http_method_not_allowed_middleware
middleware rack ruby ruby-gem ruby-on-rails
Last synced: 9 months ago
JSON representation
Send 405 response for ActionController::UnknownHttpMethod exceptions
- Host: GitHub
- URL: https://github.com/rcclemente/http_method_not_allowed_middleware
- Owner: rcclemente
- License: mit
- Created: 2018-04-22T04:50:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-12T04:36:01.000Z (almost 6 years ago)
- Last Synced: 2025-10-11T14:08:17.599Z (9 months ago)
- Topics: middleware, rack, ruby, ruby-gem, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Send 405 response for ActionController::UnknownHttpMethod exceptions
Travis CI
=======
[](https://github.com/rcclemente/http_method_not_allowed_middleware/actions)
[](https://badge.fury.io/rb/http_method_not_allowed_middleware)
Install
=======
```Bash
gem install http_method_not_allowed_middleware
```
Usage
=====
```Ruby
require 'http_method_not_allowed_middleware'
Rails.application.config.middleware.instance_eval do
insert_before(0, HttpMethodNotAllowedMiddleware)
end
```
Authors
======
[Ryan Clemente](https://github.com/rcclemente)
kojiee@gmail.com
[Adrian Bordinc](https://github.com/ellimist)
adrian.bordinc@gmail.com
License: MIT
Gem Template
======
https://github.com/grosser/project_template