Flowdock
method

set

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Errors
set(key, value) public

Set messages for key to value.

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