messages()
Returns a Hash of attributes with an array of their error messages.
# File activemodel/lib/active_model/errors.rb, line 268 def messages hash = to_hash hash.default = EMPTY_ARRAY hash.freeze hash end