method

message

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Error
message() public

Returns the error message.

error = ActiveModel::Error.new(person, :name, :too_short, count: 5)
error.message
# => "is too short (minimum is 5 characters)"
Show source
Register or log in to add new notes.