Using the 2.2.4 Utility in Rails 3.2.
When you are not logged in and I go to myapp.com/documents url, Devise redirects me to myapp.com/users/sign_in and displays the flash message configured in devise.en.yml in devise.failure.unauthenticated .
This is desirable!
When you are not logged in and I go to myapp.com url (root path), Devise redirects the same way and displays the same flash message.
Redirection is still desirable, flash message is not so much.
Is there a way to configure Devise to NOT display the message "unauthenticated" if redirecting from the root path? I know I can get around this in a custom FailureApp, but this would seem to be a fairly common case where a simpler resolution should exist.
source
share