Last active
January 3, 2016 10:49
-
-
Save aquajach/8452229 to your computer and use it in GitHub Desktop.
Rails validation message example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validates_presence_of :account, message: 'cant_be_blank' | |
#/config/locales/any_name_can_do.en.yml | |
en: | |
error_messages: | |
account: | |
cant_be_blank: "you have to fill in account field!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment