Skip to content
Browse files

field_error_proc needs to return a safe string

  • Loading branch information...
1 parent 80da8eb commit 95b7e4f7d76928765a2392bf21d8f0644822c6d0 @NZKoz NZKoz committed Oct 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/active_record_helper.rb
View
2 actionpack/lib/action_view/helpers/active_record_helper.rb
@@ -3,7 +3,7 @@
module ActionView
class Base
- @@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"fieldWithErrors\">#{html_tag}</div>" }
+ @@field_error_proc = Proc.new{ |html_tag, instance| "<div class=\"fieldWithErrors\">#{html_tag}</div>".html_safe! }
cattr_accessor :field_error_proc
end

0 comments on commit 95b7e4f

Please sign in to comment.
Something went wrong with that request. Please try again.