NoMethodError in Rails::Conductor::ActionMailbox::InboundEmailsController#create + RubyonRails 6

235 Views Asked by At

Any idea why I'm getting this errors on my localhost when I send an inbound email?

It is not a part of code that I can fix. Maybe some settings?

http://localhost:3000/rails/conductor/action_mailbox/inbound_emails

enter image description here

1

There are 1 best solutions below

0
Unixmonkey On

I've just experienced this in an application that didn't use active_storage before adding in action_mailbox (which depends on active_storage).

The solution that worked for us was to specify an active_storage config like:

config/storage.yml

local:
  service: Disk
  root: <%= Rails.root.join("storage" %>

And reference which active storage config to load the environment:

config/environments/development.rb

Rails.application.configure do
  # ... other stuff
  config.active_storage.service = :local
end