Использование: Rails 3.0.3, Ruby 1.9.2
Вот отношения:
class Person < ActiveRecord::Base
has_many :contact_methods
accepts_nested_attributes_for :contact_methods
end
class ContactMethod < ActiveRecord::Base
attr_accessible :info
belongs_to :person
end
Теперь, когда я пытаюсь настроить метки contact_method в I18n, он их не распознает.
en:
helpers:
label:
person[contact_methods_attributes]:
info: 'Custom label here'
Я также пробовал:
person[contact_method_attributes]
Это отлично работает для отношений 1-1, например.
person[wife_attributes]:
name: 'My wife'
но не person[wives_attributes]
заранее спасибо