Flowdock
method

get

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

Get messages for key.

person.errors.messages   # => {:name=>["cannot be nil"]}
person.errors.get(:name) # => ["cannot be nil"]
person.errors.get(:age)  # => []
Show source
Register or log in to add new notes.