diff options
author | Sıtkı Bağdat <sbagdat@gmail.com> | 2013-10-12 16:47:17 +0300 |
---|---|---|
committer | Sıtkı Bağdat <sbagdat@gmail.com> | 2013-10-12 16:47:17 +0300 |
commit | 464def3ecf79247834bd1d5053c3a76aeee03084 (patch) | |
tree | 8226a3e0a201f45ac291ecdc9c74d46fb7f5d81f /guides | |
parent | 365110196afcf952bc22729d4467d579b708328f (diff) | |
download | rails-464def3ecf79247834bd1d5053c3a76aeee03084.tar.gz rails-464def3ecf79247834bd1d5053c3a76aeee03084.tar.bz2 rails-464def3ecf79247834bd1d5053c3a76aeee03084.zip |
Fix a writing mistake
A small mistake found in the line of ```The default error is "can't be empty"``` for ```:presence``` helper. ```empty``` word changed to ```blank```.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 339612ebc5..797b996357 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -528,7 +528,7 @@ If you validate the presence of an object associated via a `has_one` or Since `false.blank?` is true, if you want to validate the presence of a boolean field you should use `validates :field_name, inclusion: { in: [true, false] }`. -The default error message is _"can't be empty"_. +The default error message is _"can't be blank"_. ### `absence` |