Rails: How to have a nested form save to different nested models?
问题 Context: I have a Company model that has many projects . Each project has many tasks . The company has many employees . Employee belongs to Company and has many tasks . It is one employee per task and an employee will have only one task per project . Schema: Problem: I'm building a form to create a project where the user can add multiple tasks . Each task has an amount of hours specified and the employee performing the task . Upon submission the form should create a single project record, one