flash_helper.rb revision 2ba17f39825d06a15a3a8c3bbe4d2a7df71fcf9c
# encoding: UTF-8
out = ''
flash.each do |type, message|
unless type == :recaptcha_error
out << content_tag(:div, message, :class => "flash alert alert-#{type}")
end
end
out.html_safe
end
def format_error_message(msg)
return if msg.blank?
preserve content_tag(:div, msg, class: 'alert alert-danger error-message')
end
end