diff options
author | Xavier Noria <fxn@hashref.com> | 2012-11-28 09:21:17 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-11-28 09:21:17 +0100 |
commit | 6880b30a591913b0b3221f3ed4e52e2b515bf3f6 (patch) | |
tree | 3b3942cbd9ed298add98c76b9de3f80370c74a28 | |
parent | fdb41cba87064cc91e84ef7e5c5c0ec32cf670c4 (diff) | |
download | rails-6880b30a591913b0b3221f3ed4e52e2b515bf3f6.tar.gz rails-6880b30a591913b0b3221f3ed4e52e2b515bf3f6.tar.bz2 rails-6880b30a591913b0b3221f3ed4e52e2b515bf3f6.zip |
Revert "correct css selector for the display of validation error messages: changed #error_explanation to #errorExplanation"
At least in master the selector is snake case.
This reverts commit ba2fed41613e02bb6cfc46c92ace00abb99ce313.
-rw-r--r-- | guides/source/active_record_validations_callbacks.md | 8 |
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 6f1c0b6c24..6fb274f104 100644 --- a/guides/source/active_record_validations_callbacks.md +++ b/guides/source/active_record_validations_callbacks.md @@ -939,10 +939,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. -* `#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. +* `#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. 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. |