I want to set a root_path for my rails app where I want root to be devise/sessions#new if user is not signed in and home#index if user is signed in
obviously i can't use user_signed_in? method in routes so how may I achieve it ? also how can I make devise/sessions#new my root path ?
Aucun commentaire:
Enregistrer un commentaire