I know that for authenticated users in devise, you do something like:
authenticated :user do
root 'secret#index', as: :authenticated_root
end
But what if your secret is in a different namespace? I tried the following and it doesn't work:
authenticated :user do
root namespace: :auth, controller: :secret, action: :index, as: :authenticated_root
end
nor this:
namespace auth do
authenticated :user do
root 'secret#index', as: :authenticated_root
end
end
nor this:
authenticated :user do
namespace auth do
root 'secret#index', as: :authenticated_root
end
end