I need to know how to download any file using send_file() method.The
code I have shown below is for a specific file…how ever I need it
for any file.
:filename => params[:filename] ,
:type => ‘application/octet-stream’,
:disposition => ‘attachment’,
:stream => true,
:buffer_size => ‘4096’)
D:/hr/Handbook.doc is the particular file address, I need to specify an
address that downloads any file when the respective link is clicked.