Skip to content

Instantly share code, notes, and snippets.

@SamGimbel
Created November 6, 2013 20:49
Show Gist options
  • Save SamGimbel/7343828 to your computer and use it in GitHub Desktop.
Save SamGimbel/7343828 to your computer and use it in GitHub Desktop.
- flash.each do |name, msg|
- if msg.is_a?(String)
- if name == "alert" || "danger"
- name = "danger"
- elsif name == :notice
- name = :notice
- elsif name == "success"
- name = "success"
.home_alert{:class => "alert alert-#{name}"}
%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