Skip to content

Instantly share code, notes, and snippets.

@sebastyuiop
Created July 7, 2009 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastyuiop/142277 to your computer and use it in GitHub Desktop.
Save sebastyuiop/142277 to your computer and use it in GitHub Desktop.
in yaml
en:
activerecord:
errors:
models:
entry:
attributes:
day_name:
blank: "Please fill in the day name"
in model
validates_presence_of :day_name
message produced:
# Day name Please fill in the day name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment