gpt4 book ai didi

ruby-on-rails - Rails 6 和操作邮箱设置

转载 作者:行者123 更新时间:2023-12-02 19:44:40 24 4
gpt4 key购买 nike

我最近升级到了ruby 2.6.0p0 和rails 6.0.2.1。之前我有ruby 2.3和rails 5.2

当我打开现有应用程序并捆绑更新,然后rails 时,一切都工作正常:

=> Booting Puma
=> Rails 6.0.2.1 application starting in development
=> Run `rails server --help` for more startup options
Puma starting in single mode...
* Version 3.12.0 (ruby 2.6.0-p0), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development

但是当我尝试实现新的 action mailbox 时通过最初输入此 rails action_mailbox:install 功能,它会返回以下错误,如果我输入此 rails action_text:install,也会发生相同的错误。

rails aborted!
Don't know how to build task 'action_mailbox:install' (See the list of available tasks with `rails --tasks`)

有什么想法为什么会发生这种情况吗?

最佳答案

我也遇到了同样的问题。确保您在 application.rb

中需要 action_mailbox/engine
require 'action_mailbox/engine'

关于ruby-on-rails - Rails 6 和操作邮箱设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59510916/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com