Flowdock
method

[]=

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Errors
[]=(attribute, error) public

Adds to the supplied attribute the supplied error message.

person.errors[:name] = "must be set"
person.errors[:name] # => ['must be set']
Show source
Register or log in to add new notes.