Created
April 24, 2013 13:55
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--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