-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to import nested attributes containing remote urls? #687
Comments
I don't think so at this time. Are you using ActiveStorage? This might be a duplicate of issue #661. |
Got it. No, I'm not using ActiveStorage. |
Without knowing more of the internals of how the remote images are loading it's hard to give any suggestions. I would say try to find out if there is some type of call you make on each variant to manually load the image before importing. |
Hi all I found a solution for this on StackOverflow https://stackoverflow.com/questions/69555467/bulk-creating-objects-with-nested-attributes-in-ruby/69555693#69555693 |
I'm trying to create records from a csv file. Each row of the CSV file will be a new record.
The above code inserts
Ad
s with associatedvariant
s. But seems like the images are not uploaded inside the variant table. Only thecustom_text
is inserted.Is there any way to bulk upload nested attributes like this; where the images will be uploaded from remote url?
The text was updated successfully, but these errors were encountered: