Last Updated: February 25, 2016
·
4.395K
· jmartin2683

Rails flash message for Bootstrap (Haml)

#flash-display
  - flash.each do |type, msg|
    %div{:class => "alert alert-#{type == :notice ? "success" : type} fadeout", "data-dismiss" => "alert"}
      %button.close ×
      = msg if msg.is_a?(String)