Created
November 2, 2011 10:35
-
-
Save niklas/1333357 to your computer and use it in GitHub Desktop.
render 'flash', :flash => flash # from layout, file put in app/views/application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- unless flash.blank? | |
#flash | |
- flash.each do |name, msg| | |
= content_tag :div, msg, :class => "flash #{name} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment