Skip to content

Commit

Permalink
fix wrong #17318 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kapkov committed Oct 19, 2014
1 parent c3fc00e commit b9a67bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_validations.md
Expand Up @@ -706,7 +706,7 @@ we don't want names and surnames to begin with lower case.
```ruby
class Person < ActiveRecord::Base
validates_each :name, :surname do |record, attr, value|
record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:alpha:]]/
record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:lower:]]/
end
end
```
Expand Down

0 comments on commit b9a67bf

Please sign in to comment.