Skip to content

Instantly share code, notes, and snippets.

@tkrajcar
Created May 4, 2013 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkrajcar/5518451 to your computer and use it in GitHub Desktop.
Save tkrajcar/5518451 to your computer and use it in GitHub Desktop.
- flash.each do |name, msg|
- if msg.is_a?(String)
%div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
%a.close{"data-dismiss" => "alert"} ×
= content_tag :div, msg, :id => "flash_#{name}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment