开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜