Module: BootstrapFlashHelper
- Defined in:
- app/helpers/bootstrap_flash_helper.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap_flash ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/bootstrap_flash_helper.rb', line 2 def bootstrap_flash = [] flash.each do |type, | type = :success if type == :notice type = :error if type == :alert text = content_tag(:div, link_to("x", "#", :class => "close", "data-dismiss" => "alert") + , :class => "alert fade in alert-#{type}") << text if end .join("\n").html_safe end |