Normally such a line in routes.rb
resources :tenants
generates the following routes (and a few more):
| tenants_path | GET | /tenants(.:format) | tenants#index |
| | POST | /tenants(.:format) | tenants#create |
However when I try to remove index action from routes.rb like this:
resources :tenants, except: :index
The Path/Url helper for tenants#create POST action is overridden and is given the tenants_path:
| tenants_path | POST | /tenants(.:format) | tenants#create |
Why does it happen and how can it be avoided?