In the controller I have:
send_data(data, filename: "payment_file")
In the view I have:
<%= link_to 'Download File', bank_file_download_path(@bank_file_job),
data: {no_turbolink: true}, class: "btn btn-primary btn-lg btn-block" %>
But it always shows the content of the file inline. Could someone please help me?