Closed AlexVPopov closed 6 years ago
This code:
authenticated :user do root :to => 'home#index' end root :to => "home#index" devise_for :users
part of section: Create a Home Controller and View causes this error:
`add_route': Invalid route name, already in use: 'root'
When I remove one of the root :to lines, the code works. Probably a Rails 4 issue?
root :to
O.K., this is a known issue, but you can use this fix.
Where is that code file?
config/routes.rb
As mentioned, there's a fix for this, so I'm closing the issue.
This code:
part of section: Create a Home Controller and View causes this error:
When I remove one of the
root :to
lines, the code works. Probably a Rails 4 issue?