- flash.each do |type, message|
  .alert{ class: bootstrap_alert_class(type) }
    %button.close{ type: 'button', 'data-dismiss' => 'alert'}
      %span
        &times
    = message
  
- flash.each do |type, message|
  .alert{ class: bootstrap_alert_class(type) }
    %button.close{ type: 'button', 'data-dismiss' => 'alert'}
      %span
        &times
    = message

- flash.clear
  
Clear flash after displaying message in template
Clear flash after displaying message in template
