method

message

Importance_1
v6.1.3.1 - 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.