Say I have a model something like this
Parent has_many kids
Kid belongs_to Parent.
Now I have view for say a new Parent. I also have provided an AJAX form
so that they can fill in all the children they have as well.
Whats the best way to go about adding a child to a parent at this stage.
Nothing has been committed to the database. And I can’t add a child to
the database without having a parent. But the parent has not been
Thanks in advance for help!