I upload my images using Carrierwave and Fog to S3. When loading, I also create a thumbnail version of the image:
version :thumb do process :resize_to_limit => [90, 80], if: :is_resizable? end
Now I need a method for checking the version of the thumbnails.
The documentation specifies the exists? . This really works if I want to check for the original version:
asset.file.exists?
But when I use a "big" version like this:
asset.url(:thumb).file.exists?
he receives:
undefined method 'exists?' for #<String:0x007fcd9f9d9620> undefined method 'exists?' for #<String:0x007fcd9f9d9620> :
ruby-on-rails amazon-s3 carrierwave fog
crispychicken
source share