Skip to content

Commit

Permalink
make guides example more friendly to nonlatin langs
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Kapkov committed Oct 19, 2014
1 parent 9bbff50 commit a77089c
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[a-z]/
record.errors.add(attr, 'must start with upper case') if value =~ /\A[[:alpha:]]/
end
end
```
Expand Down

0 comments on commit a77089c

Please sign in to comment.