diff options
author | CassioMarques <cassiommc@gmail.com> | 2009-01-01 15:44:49 -0200 |
---|---|---|
committer | CassioMarques <cassiommc@gmail.com> | 2009-01-01 15:44:49 -0200 |
commit | d5c72192224048b51097172423ab7357aa1a89e5 (patch) | |
tree | a251383913f2ab6e4655c5e2e9d394c3a4577f47 /railties/doc/guides/source | |
parent | 58646544abe731162b4758cf57f738ce0db9ab3e (diff) | |
download | rails-d5c72192224048b51097172423ab7357aa1a89e5.tar.gz rails-d5c72192224048b51097172423ab7357aa1a89e5.tar.bz2 rails-d5c72192224048b51097172423ab7357aa1a89e5.zip |
Fix small typo on the 'The declarative validation helpers' section of AR Validations and Callbacks Guide
Diffstat (limited to 'railties/doc/guides/source')
-rw-r--r-- | railties/doc/guides/source/activerecord_validations_callbacks.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/activerecord_validations_callbacks.txt b/railties/doc/guides/source/activerecord_validations_callbacks.txt index 663ee26ff0..f57cee3c00 100644 --- a/railties/doc/guides/source/activerecord_validations_callbacks.txt +++ b/railties/doc/guides/source/activerecord_validations_callbacks.txt @@ -61,7 +61,7 @@ Active Record offers many pre-defined validation helpers that you can use direct Each helper accepts an arbitrary number of attributes, received as symbols, so with a single line of code you can add the same kind of validation to several attributes. -All these helpers accept the +:on+ and +:message+ options, which define when the validation should be applied and what message should be added to the +errors+ collection when it fails, respectively. The +:on+ option takes one the values +:save+ (it's the default), +:create+ or +:update+. There is a default error message for each one of the validation helpers. These messages are used when the +:message+ option isn't used. Let's take a look at each one of the available helpers, listed in alphabetic order. +All these helpers accept the +:on+ and +:message+ options, which define when the validation should be applied and what message should be added to the +errors+ collection when it fails, respectively. The +:on+ option takes one of the values +:save+ (it's the default), +:create+ or +:update+. There is a default error message for each one of the validation helpers. These messages are used when the +:message+ option isn't used. Let's take a look at each one of the available helpers, listed in alphabetic order. === The +validates_acceptance_of+ helper |