Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention the :without option [ci skip]
As pointed out in the ActiveModel::Validations::HelperMethods #validates_format_of documentation.
  • Loading branch information
dwo committed Oct 16, 2014
1 parent d4d03a5 commit c5c08c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/source/active_record_validations.md
Expand Up @@ -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`
Expand Down

0 comments on commit c5c08c6

Please sign in to comment.