[]=(attribute, error)
Instance Public methods
Adds to the supplied attribute the supplied error message.
person.errors[:name] = "must be set" person.errors[:name] # => ['must be set']
Adds to the supplied attribute the supplied error message.
person.errors[:name] = "must be set" person.errors[:name] # => ['must be set']
Please login to continue.