Commit e51f79752d92465885d0d120d50560f2ea0d7e0b

Authored by Nick Recobra
1 parent 5d5d3b97
Exists in master and in 1 other branch production

Error messages layout fix.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/form_helper.rb
... ... @@ -6,7 +6,7 @@ module FormHelper
6 6 content_tag(:div, :class => 'error-messages') do
7 7 body = content_tag(:h2, 'Dang. The following errors are keeping this from being a success.')
8 8 body += content_tag(:ul) do
9   - document.errors.full_messages.inject('') {|errs, msg| errs += content_tag(:li, msg) }
  9 + document.errors.full_messages.inject('') {|errs, msg| errs += content_tag(:li, h(msg)) }.html_safe
10 10 end
11 11 end
12 12 end
... ...