<% flash.each do |k, v| %> <%= content_tag(:div, :id=>"message_#{k}", :class=>"message #{k}") do %> <%= link_to_function(image_tag("manage/ico_del.gif", :title=>t('manage.close')), "$(this).parent('div.message').hide()", :class=>"close") %> <%= v %> <% end %> <% end %>