Browse files

Merge pull request #10890 from buytruckload/master

update format validation documetation
  • Loading branch information...
2 parents b483a0d + 5c1a2cf commit 399c369107a5977353ff330654ff1c5fd128cb54 @senny senny committed Jun 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/active_record_validations.md
View
2 guides/source/active_record_validations.md
@@ -357,7 +357,7 @@ given regular expression, which is specified using the `:with` option.
```ruby
class Product < ActiveRecord::Base
validates :legacy_code, format: { with: /\A[a-zA-Z]+\z/,
- message: "Only letters allowed" }
+ message: "only allows letters" }
end
```

0 comments on commit 399c369

Please sign in to comment.