But what exactly do I do next, I tried running it with no success. How
can I make it work?
Here’s some more information it it will help.
The model I have is for my Products, with image as the
attribute for the file_column file.
I went into the console, and selected all of my products
that do not have a file name in the image field, so that
I would only get the products with current images.
So with that I made a loop to go through each product:
for product in @products
product.image = File.open(product.image)
Now the loop works, I get no errors, but every file is
loaded into the tmp folder!
After sorting through the returned array I noticed:
Can anyone guide me on the next step? I’ve searched everywhere
but cant seem to find a solution!