get(key)
Instance Public methods
Get messages for key
.
person.errors.messages # => {:name=>["cannot be nil"]} person.errors.get(:name) # => ["cannot be nil"] person.errors.get(:age) # => nil
Get messages for key
.
person.errors.messages # => {:name=>["cannot be nil"]} person.errors.get(:name) # => ["cannot be nil"] person.errors.get(:age) # => nil
Please login to continue.