ActiveRecord Save Dependent Model?

Looks like there is no proposed methodology to debug this issue, I will just close it as such.

I am trying to save a model with its dependency models being saved. I want to save Model1, and have Model2 and 3 save as well. I tried this without and with the autosave feature.

What winds up happening is Model1 is saved, Model2 is saved, Model3 is untouched. Is there a way to tell ActiveRecord that for this save I want to save the model and all child models all at once? As a side note, all 3 are just created and are not in the database.

I cannot do . Create on the models because I cannot save them until all validation passes and all business logic succeeds (has to be a transaction).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions