method

[]=

Importance_1
[]=(attribute, error) public

Adds to the supplied attribute the supplied error message.

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