The following is a nice block I have been using for years with Rails for flash and notice messages. It needs updating from time to time yet a nice thing to keep on your notepad.

<% flash.each do |name, msg| %>
  <% if msg.is_a?(String) %>
    
"> <%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %> <% end %>

🙂

Leave a Reply

Screen Shot 2013-12-08 at 9.49.35 PM

I have helped a dozen companies build and optimize their engineering teams to deliver great products.

Let’s work together and I can align your business needs with your technology initiatives.