aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-10-16 13:33:47 +0200
committerYves Senn <yves.senn@gmail.com>2014-10-16 13:33:47 +0200
commit41501003feec1e94e5494c45a08714e5326a3213 (patch)
treee43e0e0842e18cd4d8a95585da802a4fd5da6d29
parent1a76ab8d421c89cf4347be3d499e48838b55372e (diff)
parentc5c08c6499a00abff779b09a2fc0123f7568db1b (diff)
downloadrails-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.md2
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`