diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bf68d8dbd..d40ae4dc4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,7 +220,7 @@ module ApplicationHelper def render_flash_messages s = '' flash.each do |k,v| - s << (content_tag('div', v.html_safe, :class => "flash #{k}")) + s << content_tag('div', v.html_safe, :class => "flash #{k}", :id => "flash_#{k}") end s.html_safe end