We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This works in Rails 5.1+
Rails.application.routes.draw do devise_for :users authenticated :user do root 'secret#index', as: :authenticated_root end root "home#index" end
For Rails 6, you must use unauthenticated and it must come before the authenticated block.
unauthenticated
authenticated
Rails.application.routes.draw do devise_for :users unauthenticated do root "home#index" end authenticated :user do root 'secret#index', as: :authenticated_root end end