I am trying to redirect the root of www.example-app.com to www.example-app.com/app/dashboard using routes.rb . At the moment, I am doing it like this:
root to: redirect('/app/dashboard')
But I would like to do this using a named route, for example:
get 'app/dashboard' => 'accounts#dashboard', as: :account_dashboard
But when I put this in the routes:
root to: redirect(account_dashboard_url)
... of course it does not work, how can I do this?
source share