method

get

get(key)
public

Get messages for key.

person.errors.messages   # => {:name=>["can not be nil"]}
person.errors.get(:name) # => ["can not be nil"]
person.errors.get(:age)  # => nil