method
[]
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
[](attribute)
public
When passed a symbol or a name of a method, returns an array of errors for the method.
person.errors[:name] # => ["cannot be nil"] person.errors['name'] # => ["cannot be nil"]
[](attribute)
public
When passed a symbol or a name of a method, returns an array of errors for the method.
person.errors[:name] # => ["cannot be nil"] person.errors['name'] # => ["cannot be nil"]