Selectively turning off Devise's flash notices in Rails 3
- by Sim
The Devise authentication framework uses flash notices everywhere. This makes it easy to integrate with apps but it leads to poor user experience sometimes.
I am wondering what's an easy way to selectively turn off some of the Devise flash notices in my Rails 3 app. In particular, I'd like to get rid of the blatantly obvious signed_in and signed_out flashes.
Some searching suggested subclassing the session controller or use something like this but I haven't been able to find any simple solutions to this problem.