Today I was working on an pdf.erb view template in rails. In this case, I wanted to add into the PDF some images that we stored in cloudinary. My first instinct was to use the image tag that’s part of the cloudinary gem:
<%= cl_image_tag(graphic.stored_at, secure: true,
However, the image would not display. Since I’ve rendered images in other PDFs, I remembered, that I needed to use the
instead. To get the correct resource name from cloudinary, a quick spin through their help documentation yielded
Notice the slightly different syntax for the transformation information between the two?
However, this also didn’t work, but a spin through some Stack Overflow articles showed me that my problem may be with trying to force https
. Dropping the