67tpnq
Last Updated: February 25, 2016
·
3.716K
· 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)