ActionMailer preview_path 不是 RSpec 默认值
ActionMailer preview_path is not the RSpec default
我有一个应用在每次加载环境时都会抛出以下错误。
Action Mailer preview_path is not the RSpec default. Preview path is set to: spec
我什至不确定这里的 preview_path
是什么或者它可能在哪里配置。有没有办法调整或禁用它?
谢谢!
您的 config/environment/development.rb
文件中可能包含以下内容:
config.action_mailer.preview_path = 'spec/'
至于预览路径是什么,是to preview emails in your browser。
不确定为什么会出错。如果您不需要电子邮件预览,也许可以尝试注释掉上面的配置行?
我有一个应用在每次加载环境时都会抛出以下错误。
Action Mailer preview_path is not the RSpec default. Preview path is set to: spec
我什至不确定这里的 preview_path
是什么或者它可能在哪里配置。有没有办法调整或禁用它?
谢谢!
您的 config/environment/development.rb
文件中可能包含以下内容:
config.action_mailer.preview_path = 'spec/'
至于预览路径是什么,是to preview emails in your browser。
不确定为什么会出错。如果您不需要电子邮件预览,也许可以尝试注释掉上面的配置行?