Ηι!
I use HTTP.get('/ehde_pdf') that through routes.rb calls a controller method that executes this code:
send_data(
          "#{Rails.root}/tmp/ehde_pdf.pdf",
          filename: "your_custom_file_name.pdf",
          type: "application/pdf"
      )
which returns pdf data to the browser, but it's doesn't show up in our page as download prompt.
I can see from e.g. Mozilla Developer Tools -> Network that browser gets file data and I can download it with double-click:

Is there any way that I can get file data from HTTP.get('/ehde_pdf') and show the download prompt directly?
Thanx!!!
 
                        
Correction: the controller code is