Skip to content

Instantly share code, notes, and snippets.

@cheeyeo
Last active December 24, 2015 08:08
Show Gist options
  • Save cheeyeo/6768046 to your computer and use it in GitHub Desktop.
Save cheeyeo/6768046 to your computer and use it in GitHub Desktop.
Custom error messages in Rails 3.2?
en:
activerecord:
models:
user: Dude
attributes:
user:
first_name: "Name first"
errors:
models:
product:
attributes:
category_id:
presence: "Product must belong to a category"
selling_pref:
presence: "Please select a selling method"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment