Rails validations, mixing messages and full_messages -
for part, find rails default error messages of built-in validators work fine me. however, have few validations on models default "{{attribute}} {{message}}" full_message format doesn't make semantic sense. know can display messages instead of full_messages, mean have add in own messages every built-in validation, because otherwise attribute name chopped off.
is there way use default full_message format, directly override full_message handful of validations use different format or particular string? there natural way mix default validation messages few custom ones don't start attribute name?
you can add custom messages config/locales/en.yml
wiki
Comments
Post a Comment