Skip to content

Instantly share code, notes, and snippets.

@lunks
Created May 3, 2011 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lunks/953763 to your computer and use it in GitHub Desktop.
Save lunks/953763 to your computer and use it in GitHub Desktop.
i18n issue
class Order < ActiveRecord::Base
has_many :order_items
validates_length_of :order_items, :minimum => 1, :message => :empty
accepts_nested_attributes_for :order_items
end
#en.yml
activerecord:
models:
order:
order_items:
quantity: quantidade
How to translate order_items (i.e. "Order items is empty.")?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment