diff options
author | Ivan Torres <mexpolk@gmail.com> | 2010-07-22 10:10:38 -0500 |
---|---|---|
committer | Ivan Torres <mexpolk@gmail.com> | 2010-07-22 10:10:38 -0500 |
commit | 2d2bde9f543a1508e9b149751a4566780033e3f0 (patch) | |
tree | 62bb19a29544ea6e499a980421583ab0e7680782 /railties/guides/source/active_record_validations_callbacks.textile | |
parent | 3e196db6ad57abcd9fc07ec2c5044b85bb13217e (diff) | |
download | rails-2d2bde9f543a1508e9b149751a4566780033e3f0.tar.gz rails-2d2bde9f543a1508e9b149751a4566780033e3f0.tar.bz2 rails-2d2bde9f543a1508e9b149751a4566780033e3f0.zip |
[PATCH] Update guides after Jeremy Kemper's changes on fieldWithErrors
to field_with_errors [#157 state:resolved]
Diffstat (limited to 'railties/guides/source/active_record_validations_callbacks.textile')
-rw-r--r-- | railties/guides/source/active_record_validations_callbacks.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index c7ba130a90..37a65d211e 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -799,7 +799,7 @@ h4. Customizing the Error Messages CSS The selectors to customize the style of error messages are: -* +.fieldWithErrors+ - Style for the form fields and labels with errors. +* +.field_with_errors+ - Style for the form fields and labels with errors. * +#errorExplanation+ - Style for the +div+ element with the error messages. * +#errorExplanation h2+ - Style for the header of the +div+ element. * +#errorExplanation p+ - Style for the paragraph that holds the message that appears right below the header of the +div+ element. @@ -811,7 +811,7 @@ The name of the class and the id can be changed with the +:class+ and +:id+ opti h4. Customizing the Error Messages HTML -By default, form fields with errors are displayed enclosed by a +div+ element with the +fieldWithErrors+ CSS class. However, it's possible to override that. +By default, form fields with errors are displayed enclosed by a +div+ element with the +field_with_errors+ CSS class. However, it's possible to override that. The way form fields with errors are treated is defined by +ActionView::Base.field_error_proc+. This is a +Proc+ that receives two parameters: |