We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

bordalix on 07/13/07


Tagged

rails flash ruby


Versions (?)


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.