method

keys

Importance_1
keys() public

Returns all message keys.

person.errors.messages # => {:name=>["cannot be nil", "must be specified"]}
person.errors.keys     # => [:name]
Show source
Register or log in to add new notes.