aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-12-08 23:11:37 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-12-08 23:11:37 +0530
commit0a33fcd68bb2c56b8c2eba066f343484a44fa588 (patch)
treed54d667ff16f99274fdec0edaf7df98bf8eba6ef /guides/source/active_record_validations.md
parent1233fc6de145932f3cd46c784ea78234cfa743b2 (diff)
parent729798068a54dbbe553c71f0283cb6ad74c2e77c (diff)
downloadrails-0a33fcd68bb2c56b8c2eba066f343484a44fa588.tar.gz
rails-0a33fcd68bb2c56b8c2eba066f343484a44fa588.tar.bz2
rails-0a33fcd68bb2c56b8c2eba066f343484a44fa588.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r--guides/source/active_record_validations.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 4642ef82f0..2e2f0e4ea9 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -6,9 +6,9 @@ the database using Active Record's validations feature.
After reading this guide, you will know:
-* Use the built-in Active Record validation helpers
-* Create your own custom validation methods
-* Work with the error messages generated by the validation process
+* How to use the built-in Active Record validation helpers.
+* How to create your own custom validation methods.
+* How to work with the error messages generated by the validation process.
--------------------------------------------------------------------------------
@@ -779,7 +779,7 @@ class Account < ActiveRecord::Base
end
```
-### Grouping conditional validations
+### Grouping Conditional validations
Sometimes it is useful to have multiple validations use one condition, it can
be easily achieved using `with_options`.
@@ -796,7 +796,7 @@ end
All validations inside of `with_options` block will have automatically passed
the condition `if: :is_admin?`
-### Combining validation conditions
+### Combining Validation Conditions
On the other hand, when multiple conditions define whether or not a validation
should happen, an `Array` can be used. Moreover, you can apply both `:if` and