Downloading Rails Assets - File-paths In Development vs Production
问题 I have a downloads_controller.rb with a single download action which I want to trigger the download of a file that lives in a folder called downloads which lives in a folder called download_assets which I have added to my asset paths. - download_assets [Added to asset paths] - downloads - file_1.pdf - file_2.pdf ... I can successfully access any files in the folder using: http://my-app.dev/assets/downloads/file.pdf In order to use send_file I need the file system path to this file rather than