It's a bit late (after about 35 days) to answer this. So, sorry for that. But I just wanted to share the fact that I used the gem more than a few months ago for custom error messages.
This plugin allows you to omit the attribute name for specific messages. All you have to do is start a message with the symbol "^".
I just checked it https://github.com/nwise/custom_error_message & amp; It has not been updated since March. So I probably used it at the right time.
ps: Your answer for defining user keys in a yml file is more appropriate.
source share