Problem
After monkeying around with the code on another problem, I attempted to switch my Rake secret key. I simply ran rake secret
and plugged the new key into my production config. This apparently did nothing and definitely didn’t solve my problem, so I forgot about it. Then, I noticed my dynamic Landing Page was no displaying background images.
I reuploaded the files, nothing. I noticed the broken URLs included /rails/active_storage/blobs/(long gibberish string)/myFilename.jpg
. Knowing nothing about Ruby, I didn’t know how to proceed.
Solution
I didn’t actually change my Rake secret successfully. My active_storage blobs were still using my old secret, pointing to nowhere. I uncommented my old secret, commented out the new one, and all is right in the world.
If your Rake secret is lost, you’ll need to regenerate your secret properly, which is something I can’t help with. This is a common feature across Rails applications, so I suspect Googling would be fruitful.