Skip to content

Instantly share code, notes, and snippets.

@TXDynamics
Created April 24, 2013 13:55
Show Gist options
  • Select an option

  • Save TXDynamics/5452305 to your computer and use it in GitHub Desktop.

Select an option

Save TXDynamics/5452305 to your computer and use it in GitHub Desktop.
Display temp status messages using a loop and the ruby 'flash' which is a temporary 'hash' object
<!--The Flash item is a temporary space used within Ruby
In this case we are using it to display status messages accross
The ruby site We are using a loop to do it-->
<% flash.each do |key, value| %>
<div class="alert alert-<%= key %>"><%= value %></div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment