rails i18n association -
i have question regarding i18n in rails when meeting assciations
class user belongs_to :billing_address, :class_name => "address' belongs_to :delivery_address, :class_name => "address' end en: activerecord: attributes: user: billing_address_id: "billing address" delivery_address_id: "delivery address"
the above code works, wonder if there way achieve not using _id
suffix in yml?
you heading in right direction. bit better:
en: activerecord: models: address: 'address' user: 'user' attributes: address: city: 'city' zip_code: 'zip code' user: address_id: 'address id'
have @ http://xyzpub.com/en/ruby-on-rails/3.2/i18n_mehrsprachige_rails_applikation.html
Comments
Post a Comment