Selectively turning off Devise's flash notices in Rails 3

Posted by Sim on Stack Overflow See other posts from Stack Overflow or by Sim
Published on 2011-03-12T07:51:01Z Indexed on 2011/03/12 8:10 UTC
Read the original article Hit count: 193

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.

© Stack Overflow or respective owner

Related posts about ruby-on-rails-3

Related posts about authentication