Husband.rb
has_many :wives
accepts_nested_attributes_for :wives
Wife.rb
belongs_to :husband
参数为 "adf", "sex"=>"男", "wives"=>["adf", "noun"=>"adf", "order"=>"1", "remark"=>"阿道夫"} permitted: true>]} permitted: true>
create 时抛 *** ActiveRecord::AssociationTypeMismatch Exception: Wife(#70041826867080) expected, got {"name"=>"adf", "noun"=>"adf", "order"=>"1", "remark"=>"阿道夫"} which is an instance of ActiveSupport::HashWithIndifferentAccess(#17478600)
哪位大神,帮帮我!