I am having some problems with flash[:notice].
In fact, in my code, I use flash[:error] for showing errors messages
and flash[:notice] for showing other messages.
All flash errors are correctly displayed, however flash notices are
never displayed. The code is the same for both of them:
- on the controller I have for example:
flash[:notice] = 'Asset was successfully created.'
flash[:error] = 'There were some problems on the creation of the
- then, on the view I have:
- if (flash[:notice])
- elsif (flash[:error])
Did someone have the same problem? Could you help me?