CSV.foreach(file.path, headers: true) do |row|
self.image = URI.parse(url_value)
@image_remote_url = url_value
If I remove delay from Deal.create!, it works fine. However when I run it with the delayed_job, it does properly extract the image filename and put it in the correct paperclip column, but it does not actually perform the upload.
I’m confused as to where to add instructions to make this work properly.
I’ve just built a quick Rails app to try to duplicate your problem, but everything worked fine for me (here’s my minimal model). I was using Paperclip 3.4.2 with the default filesystem storage backend and Delayed::Job 3.0.5.
What Paperclip storage backend are you using?
Also, have you tried running an isolated test that only sets an image_remote_url and does nothing else? Something like this: