I've updated rails from 5.1.4 to 5.2 and remove Papaerclip to use Active Storage. I'm using digitalocean spaces. In my development env I've setted credentials in storage.yml to save images to digitalocean.
I've added aws gem in gemfile. I run db:migrate for active storage.
But when I'm going to submit the form with an image upload html tag, i receive this error: Unable to autoload constant ActiveStorage::Blob::Analyzable.
I have an issue similar to Mattia’s, so I tried your suggestion.
Thanks for the advice, although installing mini_magick (v4.8) didn’t solve the issue for me.
For context, I’m on ruby 2.4.2 / rails 5.2 / active storage 5.2
I followed this tutorial for the active storage setup
Replying to myself in case someone hits the same issue.
First thanks Frank for the pointers you sent me. I am new to rails so it was very helpful to debug from a clean state.
I got to solve it, the main issue for me was a parsing error in the ‘storage.yml’ file. The storage engine was chocking on it, even if the file was passing several linters fine.
I kept the original file for later review, but rewriting it from scratch solved the issue.
Thank you! I was having a similar problem and it was the storage.yml file having issues. This post helped point me in that direction and track down the problem. (My :amazon section of the storage.yml wasn’t set up correctly, and the storage.yml wasn’t valid .yml).