How to download an uploaded file in Cloudinary
Clash Royale CLAN TAG #URR8PPP How to download an uploaded file in Cloudinary i'm currently working on how to download an uploaded file in Cloudinary. In my views/declarations/index , I want a button to download the file the user uploaded at the Declaration.create . views/declarations/index Declaration.create I've tried the this : <% @declarations.each do |declaration| %> <tr> <td><%= link_to("Download", cl_private_download_url(declaration.facture, :png, :attachment => true)) %></td> </tr> <% end %> But all I have is something like this : #Attachinary::File:0x00007fa7deca0f20 Does one of you know how could I do this ? Many thanks, You need to link to a controller method that actually handles the file transfer. This method receives the declaration ID, pulls the record, fetches the file, and serves it. – bo-oz 3 hours ago ...