缺少要链接的主机!请提供 :host 参数或设置 default_url_options[:host] (ActionView::Template::Error) [英] Missing host to link to! Please provide :host parameter or set default_url_options[:host] (ActionView::Template::Error)
问题描述
我安装了设计并添加了 config.action_mailer.default_url_options = { :host =>'localhost:3000' }
按照建议添加到我的 development.rb 文件中.当我运行黄瓜时出现错误:
I installed devise and added config.action_mailer.default_url_options = { :host => 'localhost:3000' }
to my development.rb file as suggested. When I run cucumber I get an error:
缺少要链接的主机!请提供 :host 参数或设置default_url_options[:host] (ActionView::Template::Error)
Missing host to link to! Please provide :host parameter or set default_url_options[:host] (ActionView::Template::Error)
有人知道这是什么关系吗?谷歌上没有太多关于此的信息
does anyone know what this is related to? not too much info on google about this
推荐答案
Cucumber 运行您的测试环境,因此您需要在 test.rb
中添加相同的行.
Cucumber runs your test environment so you need to add the very same line in test.rb
.
这篇关于缺少要链接的主机!请提供 :host 参数或设置 default_url_options[:host] (ActionView::Template::Error)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!