Posted By

bordalix on 07/13/07


rails flash ruby

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Looping through flash

 / Published in: Rails

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

  1. <% flash.each do |key, msg| %>
  2. <%= content_tag :div, msg, :id => key %>
  3. <% end %>

Report this snippet  

You need to login to post a comment.