Fix code for customize the error messages html adding a .html_safe of 8.3 section
This commit is contained in:
parent
c8ab3992f8
commit
f5a51a7788
@ -824,10 +824,10 @@ Here is a simple example where we change the Rails behaviour to always display t
|
||||
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
||||
if instance.error_message.kind_of?(Array)
|
||||
%(#{html_tag}<span class="validation-error">
|
||||
#{instance.error_message.join(',')}</span>)
|
||||
#{instance.error_message.join(',')}</span>).html_safe
|
||||
else
|
||||
%(#{html_tag}<span class="validation-error">
|
||||
#{instance.error_message}</span>)
|
||||
#{instance.error_message}</span>).html_safe
|
||||
end
|
||||
end
|
||||
</ruby>
|
||||
|
Loading…
Reference in New Issue
Block a user