Index View/Path not Listed in Rake Routes
1 min readFeb 3, 2020
When you run rake routes
, it lists the routes or paths of the following actions/views:
index
new
create
show
edit
update (PUT request)
update (PATCH request)
destroy
But in some cases, you may not be able to find the index
route. This is a typing mistake. Go to your routes.rb
file and there will me something like this:
resource :model
OR
resource :models
You need to change you this line to make it a plural resource so that the rake could list index route. For this, use this line instead:
resources :models