问题描述
知道为什么我在发送入站电子邮件时会在本地主机上收到此错误吗?
这不是我可以修复的代码的一部分。也许是一些设置?
http://localhost:3000/rails/conductor/action_mailBox/inbound_emails
解决方法
我刚刚在添加 action_mailbox(取决于 active_storage)之前没有使用 active_storage 的应用程序中遇到过这种情况。
对我们有用的解决方案是指定一个 active_storage 配置,例如:
config/storage.yml
local:
service: Disk
root: <%= Rails.root.join("storage" %>
并参考要加载环境的活动存储配置:
config/environments/development.rb
Rails.application.configure do
# ... other stuff
config.active_storage.service = :local
end