Can you provide some additional information about your has_attached_file
method declared in your model?
You could do something like this assuming you have has_attached_file :photo
:
Model.find_each do |record|
puts record.photo.url
end
puts
will obviously just show you the URL. You'll want to script iterating over the list and fetching them with curl or wget.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.