私は3つのテーブルを持っています:
profiles, users, payment_details
今、models/user.rb私は次のことをしています:
has_one :profile, :dependent => :destroy
has_one :payment_detail, :dependent => :destroy
models/profile.rb私は持っています:
has_one :payment_detail, :through => :user
そしてmodels/payment_details.rb私は持っています:
has_one :profile, :through => :user
次に、ネストされた:profileフォームを持つフォームがあり:payment_detailsます。
何らかの理由で、 fromではなくfrom:payment_detailsで:user_id更新されます:id:profiles:user_id:profiles