and @cv.errors.full_messages => ["Attachment files "].
When I'm in the console, however, I see c.errors.full_messages => ["Attachment can't be blank"].
I would like to override the error message and cannot seem to do so with locales or validates :attachment, presence: { message: 'Testing' }.
I have the following in my model:
If I attempt a save via form submit with no attachment, I see "Attachment files" as my error message. When I pry on the page, I see
and
@cv.errors.full_messages => ["Attachment files "]
. When I'm in the console, however, I seec.errors.full_messages => ["Attachment can't be blank"]
.I would like to override the error message and cannot seem to do so with locales or
validates :attachment, presence: { message: 'Testing' }
.