Rails3: helper: html_safe for render_flash_messages method at ApplicationHelper

Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8121 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-07 23:53:20 +00:00
parent 12077a4d44
commit 6d805cfca2
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ module ApplicationHelper
def render_flash_messages
s = ''
flash.each do |k,v|
s << content_tag('div', v, :class => "flash #{k}")
s << (content_tag('div', v.html_safe, :class => "flash #{k}"))
end
s.html_safe
end