Skip to content
Browse files

change format example to read better when rendered with full_messages

The capital O was awkward and the validation wouldn't read "right" to the user.
  • Loading branch information...
1 parent b7f9de2 commit 5c1a2cf6b309093ad5a6bb5d43364167ceaa7675 @barelyknown barelyknown committed Jun 8, 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 5c1a2cf

Please sign in to comment.
Something went wrong with that request. Please try again.