ruby on rails - Error: Unpermitted parameters with nested attributes -
i'm having problem saving contents of nested field. have 2 models incorporation , company . relate follows: class company < activerecord::base belongs_to :incorporation end class incorporation < activerecord::base has_one :company accepts_nested_attributes_for :company end my aim create new company , incorporation entry in same form, using both incorporations controller , view. ( problem ) however, each time attempt submit form, incorporation entry goes through company entry held unpermitted parameters error: started post "/incorporations" 127.0.0.1 @ 2014-12-15 22:40:59 -0700 processing incorporationscontroller#create html parameters: {"utf8"=>"✓", "authenticity_token"=>"lcj/ztnne/9l/ualycna8eae8vmmn010tos4t5e+zka=", "incorporation"=>{"title"=>"test", "company"=>{"name"=>"test"}}, "button"=>""} un...