Skip to content

Instantly share code, notes, and snippets.

@shamil614
Created November 18, 2014 21:06
Show Gist options
  • Save shamil614/9e72f713c3a0319d3888 to your computer and use it in GitHub Desktop.
Save shamil614/9e72f713c3a0319d3888 to your computer and use it in GitHub Desktop.
Demo how to use localize ActiveRecord errors
en:
helpers:
submit:
offer:
create: "Make Offer"
bid:
create: "Place Bid"
activerecord:
errors:
models:
bid:
attributes:
amount:
not_high_enough: "must be more than previous bids"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment