No flash message with devise
I'm trying to remove a flash message and I'm using devise for t开发者_开发知识库he user management. Setting the value to null or an empty string just throws an error in the notice, removing it from the devise.en.yml gives a similar error.
Removing the notice from erb file isn't an option, I just want it to not display at all. Anyone got any ideas?
You could call flash.discard(:notice) in an after filter of the controller. That should clear the flash message.
精彩评论