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:
parent
12077a4d44
commit
6d805cfca2
|
@ -214,7 +214,7 @@ module ApplicationHelper
|
||||||
def render_flash_messages
|
def render_flash_messages
|
||||||
s = ''
|
s = ''
|
||||||
flash.each do |k,v|
|
flash.each do |k,v|
|
||||||
s << content_tag('div', v, :class => "flash #{k}")
|
s << (content_tag('div', v.html_safe, :class => "flash #{k}"))
|
||||||
end
|
end
|
||||||
s.html_safe
|
s.html_safe
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue