mention the :without option [ci skip]

As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation.
This commit is contained in:
Rob 2014-10-16 12:24:32 +01:00
parent d4d03a520d
commit c5c08c6499
1 changed files with 2 additions and 0 deletions

View File

@ -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`