Using rails with Devise, anytime you sign in or signout devise spits a Flash Notice on the page which doesn't seem necessary from a UI perspective, it's usually pretty obvious, right?
Is there a way to turn off flash notices in Devise for Sign In and Sign Outs?
Thanks
Just try adding this code in your sessions_controller.rb.
Hope this helps :-)
You can go to the localization file and customize any flash messages, even if to specify empty strings. Look in the documentation under i8n and you'll see how it's done.
Devise has one way of customizing this type of behavior: overriding controllers. Open Devise source code, find app/controllers/sessions_controller and copy it to your application. Devise will start using your own controller rather than its own. From there you can easily modify flash messages.
This question has the correct and updated Answer: Rails Disable devise flash messages.