Flowdock
method

set

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveModel::Errors

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

These similar methods exist in v6.1.7.7:

set(key, value) public

Set messages for key to value.

person.errors[:name] # => ["cannot be nil"]
person.errors.set(:name, ["can't be nil"])
person.errors[:name] # => ["can't be nil"]
Show source
Register or log in to add new notes.