To offer files for download, use send_file.
send_file
def download(file) send_file file.path, :disposition => 'attachment' end
Save money by migrating from AWS to our fully managed hosting in Germany.
Note that a send_file replaces the default :render action.
:render