Skip to content

Instantly share code, notes, and snippets.

@zernel
Created August 27, 2012 03:08
Show Gist options
  • Save zernel/3485229 to your computer and use it in GitHub Desktop.
Save zernel/3485229 to your computer and use it in GitHub Desktop.
Flash List Tips
<% flash.each do |name, msg| %>
<div class="alert alert-<%= name == :notice ? "success" : "error" %>">
<a class="close" data-dismiss="alert">×</a>
<%= msg %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment