Permalink
Browse files

Merge branch 'master' of github.com:ryanb/nifty-generators

  • Loading branch information...
2 parents e017dfd + 2363790 commit f95a45baf0c5bd08f1af08ada52bd1dc86e2d094 @ryanb committed Apr 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/generators/nifty/layout/templates/error_messages_helper.rb
@@ -7,8 +7,8 @@ def error_messages_for(*objects)
messages = objects.compact.map { |o| o.errors.full_messages }.flatten
unless messages.empty?
content_tag(:div, :class => "error_messages") do
- list_items = messages.map { |msg| content_tag(:li, msg) }
- content_tag(:h2, options[:header_message]) + content_tag(:p, options[:message]) + content_tag(:ul, list_items.join.html_safe)
+ list_items = messages.map { |msg| content_tag(:li, msg.html_safe) }
+ content_tag(:h2, options[:header_message].html_safe) + content_tag(:p, options[:message].html_safe) + content_tag(:ul, list_items.join.html_safe)
end
end
end

0 comments on commit f95a45b

Please sign in to comment.