aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environment.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 2b3211690..14bf2658e 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -68,6 +68,8 @@ end
# Validation error messages
ActiveRecord::Errors.default_error_messages[:blank] = "must be filled in"
+# Use SPAN instead of DIV. See http://dev.rubyonrails.org/ticket/2210
+ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| %(<span class="fieldWithErrors">#{html_tag}</span>)}
# Include your application configuration below