diff --git a/app/controllers/public/file_tunel_downloads_controller.rb b/app/controllers/public/file_tunel_downloads_controller.rb index e123af7..1ac5253 100644 --- a/app/controllers/public/file_tunel_downloads_controller.rb +++ b/app/controllers/public/file_tunel_downloads_controller.rb @@ -50,7 +50,7 @@ class Public::FileTunelDownloadsController < ApplicationController @data_to_send = File.open(@file_tunel_download.generate_pdf).read - params[:inline] = true + #params[:inline] = true send_data @data_to_send, :filename =>"#{@file_tunel_download.token}.pdf" , :type => 'application/pdf',:disposition => (params[:inline] ? 'inline' : "attachment") diff --git a/app/views/public/file_tunel_downloads/show.html.haml b/app/views/public/file_tunel_downloads/show.html.haml index d913847..cb67233 100644 --- a/app/views/public/file_tunel_downloads/show.html.haml +++ b/app/views/public/file_tunel_downloads/show.html.haml @@ -11,4 +11,4 @@ =link_to "Télécharger maintenant", download_public_file_tunel_download_path(:id => @file_tunel_download.token), :class => "btn btn-primary" - =debug fili_public_file_tunel_download_path(:id => @file_tunel_download.token) \ No newline at end of file + =#debug fili_public_file_tunel_download_path(:id => @file_tunel_download.token) \ No newline at end of file