diff options
| author | Yves Senn <yves.senn@gmail.com> | 2014-10-16 13:33:47 +0200 |
|---|---|---|
| committer | Yves Senn <yves.senn@gmail.com> | 2014-10-16 13:33:47 +0200 |
| commit | 41501003feec1e94e5494c45a08714e5326a3213 (patch) | |
| tree | e43e0e0842e18cd4d8a95585da802a4fd5da6d29 | |
| parent | 1a76ab8d421c89cf4347be3d499e48838b55372e (diff) | |
| parent | c5c08c6499a00abff779b09a2fc0123f7568db1b (diff) | |
| download | rails-41501003feec1e94e5494c45a08714e5326a3213.tar.gz rails-41501003feec1e94e5494c45a08714e5326a3213.tar.bz2 rails-41501003feec1e94e5494c45a08714e5326a3213.zip | |
Merge pull request #17285 from dwo/master
mention the :without option [ci skip]
| -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` |
