Oops 💣

上级 f55bfe72
......@@ -1078,7 +1078,7 @@ Another way to do this is using `[]=` setter
```ruby
class Person < ActiveRecord::Base
def a_method_used_for_validation_purposes
errors.messages.add(:name, "cannot contain the characters !@#%*()_-+=")
errors.add(:name, "cannot contain the characters !@#%*()_-+=")
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册