diff options
author | Rob <phorque@gmail.com> | 2014-10-16 12:24:32 +0100 |
---|---|---|
committer | Rob <phorque@gmail.com> | 2014-10-16 12:24:32 +0100 |
commit | c5c08c6499a00abff779b09a2fc0123f7568db1b (patch) | |
tree | f0810c7db81e0cd366c6687143bac8e580f67e7e /guides | |
parent | d4d03a520dff836d54f794f7c644f2f5c952b01b (diff) | |
download | rails-c5c08c6499a00abff779b09a2fc0123f7568db1b.tar.gz rails-c5c08c6499a00abff779b09a2fc0123f7568db1b.tar.bz2 rails-c5c08c6499a00abff779b09a2fc0123f7568db1b.zip |
mention the :without option [ci skip]
As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 4dc7203ba3..cba4b852a1 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -361,6 +361,8 @@ class Product < ActiveRecord::Base end ``` +Alternatively, you can require that the specified attribute does _not_ match the regular expression by using the `:without` option. + The default error message is _"is invalid"_. ### `inclusion` |