Return to Snippet

Revision: 3347
at July 13, 2007 04:02 by bordalix

Initial Code
<% flash.each do |key, msg| %>
  <%= content_tag :div, msg, :id => key %>
<% end %>

Initial URL

Initial Description
A quick and simple way of having any flash messages, from railscast #18

Initial Title
Looping through flash

Initial Tags
rails, flash, ruby

Initial Language