提交 0dfc4fa1 编写于 作者: M Matthew Draper

Merge pull request #17319 from igas/fix-17318

fix wrong example from #17318 [ci skip]
......@@ -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
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册