Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails and active_storage: Cannot load `Rails.config.active_storage.service`: (RuntimeError) Missing service adapter for "S3"

I see this error in my console when all the configuration is right

Cannot load `Rails.config.active_storage.service`: (RuntimeError) Missing service adapter for "S3"
like image 703
fguillen Avatar asked Apr 26 '20 11:04

fguillen


People also ask

Why does active storage need to be installed separately from rails?

Various features of Active Storage depend on third-party software which Rails will not install, and must be installed separately: Image analysis and transformations also require the image_processing gem. Uncomment it in your Gemfile, or add it if necessary: Compared to libvips, ImageMagick is better known and more widely available.

How to manage attachments in rails using Azure Storage?

AzureStorage, to manage attachments through Microsoft Azure Storage. Mirror, to be able to use several services to manage attachments. Inside a Rails application, you can set-up your services through the generated config/storage.yml file and reference one of the aforementioned constant under the service key. For example:

How do I set up a service in a Rails application?

Inside a Rails application, you can set-up your services through the generated config/storage.yml file and reference one of the aforementioned constant under the service key. For example: You can checkout the service's constructor to know which keys are required.


1 Answers

It is not clear in the documentation, I have to add the gem aws-sdk-s3 to my Gemfile

gem "aws-sdk-s3", require: false
like image 125
fguillen Avatar answered Oct 17 '22 21:10

fguillen