Flowdock
method

get

Importance_1
v4.2.1 - Show latest stable - 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)  # => nil
Show source
Register or log in to add new notes.