generate_message(attribute, type = :invalid, options = {})
Instance Public methods
Translates an error message in its default scope
(activemodel.errors.messages).
Error messages are first looked up in
models.MODEL.attributes.ATTRIBUTE.MESSAGE, if it's not
there, it's looked up in models.MODEL.MESSAGE and if that
is not there also, it returns the translation of the default message (e.g.
activemodel.errors.messages.MESSAGE). The translated model
name, translated attribute name and th