缺少主机链接到!请提供:host参数或set 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)

查看:131
本文介绍了缺少主机链接到!请提供:host参数或set default_url_options [:host](ActionView :: Template :: Error)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了devise并添加了 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参数或set
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

推荐答案

黄瓜运行你的测试环境,所以你需要添加相同的行在code> test.rb 。

Cucumber runs your test environment so you need to add the very same line in test.rb.

这篇关于缺少主机链接到!请提供:host参数或set default_url_options [:host](ActionView :: Template :: Error)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆