Open wraithseeker opened 8 years ago
My quick and dirty fix was to include this field in Model B which does not actually exist and only exists in Model A. Is there a better workaround other than this to solve the issue?
crop_uploaded :image_coverpage
I have a model A that uses Carrierwave Crop and when I submit a nested form that includes multiple model Bs that has an image, I get the following error. Character is Model B.
Model A has many Model B and Model B belongs to Model A
I have ensured that the strong params in Model A includes the cropping fields and that it allows nested attributes. Everything works fine if I update Model A by itself or Model B by itself. Updating all of them at the same time causes the error.