Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 283 Bytes
<%- flash.each do |key, msg| -%>
<%= content_tag :div, msg, :class => "flash_#{key}" %>
<%= content_tag :script, :type => "text/javascript" do -%>
$('.flash_<%= key %>').fadeIn('slow');
setTimeout("$('.flash_<%= key %>').fadeOut('slow');", 5000);
<% end %>
<%- end -%>