Rails: Create File Download Download Generated Data send_data # Inside controller action. send_data data, filename Download Existing File send_file # Inside controller action. send_file "path/to/file"