mention the :without option [ci skip]
As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation.
This commit is contained in:
parent
d4d03a520d
commit
c5c08c6499
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user