铁路6.1.5:非初始化的常量邮件:: testmailer
为什么我会在“ rails 6.1.5& ruby 3.1.0”的情况下获得“非初始化的常量邮件:: testmailer”错误,而无问题的工作” 6.1.5& ruby 3.0.1”?
Why am i getting 'uninitialized constant Mail::TestMailer' error with "Rails 6.1.5 & Ruby 3.1.0" while working without problems "Rails 6.1.5 & Ruby 3.0.1" ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从
因此,我刚刚将下3行添加到Gemfile中。它运行良好。
Found following from NEWS for Ruby 3.1.0.
So, i just added next 3 lines into GemFile. It worked fine.
在调试和故障排除后,我也有类似的问题。我将Rails版本更改为6.1.1.4,而不是6.1.7。我有类似的错误,指出它无法从邮件宝石中加载一些.rb文件。
我所做的是授予他们阅读许可。
此后加载申请正常。
I had similar issue, after debugging and troubleshooting. I made changes to the Rails version to 6.1.1.4 instead of 6.1.7. The I got similar error stating that it could not load some .rb files from the mail gem.
What I did was to give them the read permission to others.
and the application loaded fine after that.
在服务器上部署代码后,我遇到了同样的问题。
版本详细信息 -
我只是安装了一个新的宝石,
并且问题得到了解决。
I was getting same issue after deploying the code on server.
Version details-
I just install a new gem as-
and issue got resolved.