Mostrar contenido de flash


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <% unless flash.blank? %>
  2. <div id="flash">
  3. <% flash.each do |key, msg| %>
  4. <%= content_tag(:div, msg, :id => key) %>
  5. <% end %>
  6. </div>
  7. <% end %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.