Skip to content

Instantly share code, notes, and snippets.

@aquajach
Last active January 3, 2016 10:49
Show Gist options
  • Save aquajach/8452229 to your computer and use it in GitHub Desktop.
Save aquajach/8452229 to your computer and use it in GitHub Desktop.
Rails validation message example
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