I'm using Dragonfly and would like to have a default image that resizes in the same way present thumbnails do.
I currently have the following code, but when Dragonfly uses the fetch_file method, it tries to process a thumbnail but the resulting URL is a dead link.
if listing.image
image = listing.image.jpg
else
image = Dragonfly[:images].fetch_file('/toekomst/images/speech-bubble.png')
end
image_tag image.jpg.thumb(size).url, :class => "framed"
I can't find much help on line for this, so any hints are most appreciated! Thanks!