aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorHarper Henn <harper.henn@gmail.com>2012-11-27 08:24:25 -0500
committerHarper Henn <harper.henn@gmail.com>2012-11-27 08:24:25 -0500
commitba2fed41613e02bb6cfc46c92ace00abb99ce313 (patch)
tree45425106932f66b2648014cd9ec3e97665b162d3 /guides
parent8f43c9afc47773127d6d74d5fd4ad4a26af98ecf (diff)
downloadrails-ba2fed41613e02bb6cfc46c92ace00abb99ce313.tar.gz
rails-ba2fed41613e02bb6cfc46c92ace00abb99ce313.tar.bz2
rails-ba2fed41613e02bb6cfc46c92ace00abb99ce313.zip
correct css selector for the display of validation error messages: changed #error_explanation to #errorExplanation
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_validations_callbacks.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/active_record_validations_callbacks.md b/guides/source/active_record_validations_callbacks.md
index 28f693a856..eedcd9a342 100644
--- a/guides/source/active_record_validations_callbacks.md
+++ b/guides/source/active_record_validations_callbacks.md
@@ -931,10 +931,10 @@ If you pass `nil` in any of these options, the corresponding section of the `div
The selectors used to customize the style of error messages are:
* `.field_with_errors` - Style for the form fields and labels with errors.
-* `#error_explanation` - Style for the `div` element with the error messages.
-* `#error_explanation h2` - Style for the header of the `div` element.
-* `#error_explanation p` - Style for the paragraph holding the message that appears right below the header of the `div` element.
-* `#error_explanation ul li` - Style for the list items with individual error messages.
+* `#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 holding the message that appears right below the header of the `div` element.
+* `#errorExplanation ul li` - Style for the list items with individual error messages.
If scaffolding was used, file `app/assets/stylesheets/scaffolds.css.scss` will have been generated automatically. This file defines the red-based styles you saw in the examples above.