Created
August 7, 2012 02:26
-
-
Save jgmartin/3280800 to your computer and use it in GitHub Desktop.
haml bootstrap flash message
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
- flash.each do |type, msg| | |
%div{:class => "alert alert-#{type == :notice ? "success" : type} fadeout", "data-dismiss" => "alert"} | |
%a.close x | |
= msg if msg.is_a?(String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment