An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

Send 405 response for ActionController::UnknownHttpMethod exceptions

Travis CI
=======
[![Build Status](https://github.com/rcclemente/http_method_not_allowed_middleware/workflows/Ruby/badge.svg)](https://github.com/rcclemente/http_method_not_allowed_middleware/actions)
[![Gem Version](https://badge.fury.io/rb/http_method_not_allowed_middleware.svg)](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