diff options
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 2 |
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 |