Flowdock
method

[]=

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 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.