I want active_storage to store files for my Ruby on Rails application on a disk. I’ve added a disk and set the mount path to /storage
but this doesn’t seem to be correct. I’m getting an error when calling pages that need the files I’ve added ActiveStorage::FileNotFoundError
As I’m about to try this too on one of my projects I took a look into this and came up with this:
See the readme for more details.
In summary, in storage.yml
I defined a render
service who’s root path is the mount point of the defined disks and then in production.rb I’ve configured activestorage to use this service.