aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-05-01 16:24:13 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-05-01 16:24:13 +0530
commit7ead1d81431b2c2c0366347b7bfdf9a329b6f934 (patch)
tree9a6a18fbb185cf2dfa48016dd32c787fe352752e /guides/source/active_record_validations.md
parent78db16d440c610edeb8b2bb37233a5991caf4a29 (diff)
parent8476932aacbc45ce38b007cca0bb3f12e741f709 (diff)
downloadrails-7ead1d81431b2c2c0366347b7bfdf9a329b6f934.tar.gz
rails-7ead1d81431b2c2c0366347b7bfdf9a329b6f934.tar.bz2
rails-7ead1d81431b2c2c0366347b7bfdf9a329b6f934.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.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index df39d3c5dc..dfc951f10e 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -434,7 +434,7 @@ end
Note that the default error messages are plural (e.g., "is too short (minimum
is %{count} characters)"). For this reason, when `:minimum` is 1 you should
-provide a personalized message or use `validates_presence_of` instead. When
+provide a personalized message or use `presence: true` instead. When
`:in` or `:within` have a lower limit of 1, you should either provide a
personalized message or call `presence` prior to `length`.
@@ -768,6 +768,7 @@ class Person < ActiveRecord::Base
validates :name, presence: true, on: :save
end
```
+The last line is in review state and as of now, it is not running in any version of Rails 3.2.x as discussed in this [issue](https://github.com/rails/rails/issues/10248)
Strict Validations
------------------