Skip to content

Instantly share code, notes, and snippets.

@davout
Created May 20, 2013 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davout/5611735 to your computer and use it in GitHub Desktop.
Save davout/5611735 to your computer and use it in GitHub Desktop.
.row.alerts
.span12
- unless flash.blank?
- [:notice, :alert, :warning, :error].select{ |type| not flash[type].blank? }.each do |type|
.flash
%div{:class => "alert alert-#{type}"}
%a.close{ 'data-dismiss' => 'alert' }= '&times'.html_safe
!= flash[type]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment