I have a Report model, and it has: has_one_attached :photo
The file is a PDF. I want to have access to the URL to display the PDF :
<%= link_to "link text...", cl_image_path(@report.photo.key, format: :pdf ) %>
but it gives me a url with the key.pdf which is not the same as the pdf 's cloudinary URL. Do you know why ?
Please sign in to leave a comment.