Root route should be configurable
Opened this issue · 0 comments
jagthedrummer commented
Currently we've hard coded the root routes, but it would be nice to be able to configure them somehow.
I tried doing this:
root to: "my_new_root_controller#index"
But it throws an error when it reaches the root
route from the bullet_train
gem.
Invalid route name, already in use: 'root'
You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
https://guides.rubyonrails.org/routing.html#restricting-the-routes-created