Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 如何测试舒适的墨西哥沙发?_Ruby On Rails - Fatal编程技术网

Ruby on rails 如何测试舒适的墨西哥沙发?

Ruby on rails 如何测试舒适的墨西哥沙发?,ruby-on-rails,Ruby On Rails,我不熟悉舒适的墨西哥沙发。我已经安装了它,并创建了一些片段和页面 我现在感兴趣的是如何在本地机器上进行测试,以便查看页面内容的外观?如何查看加载了代码段的页面 当我点击指向我创建的页面的链接时,它只会说: It works! This is the default web page for this server. The web server software is running but no content has been added, yet. 嗯,我必须为我的初始起始页面定义一

我不熟悉舒适的墨西哥沙发。我已经安装了它,并创建了一些片段和页面

我现在感兴趣的是如何在本地机器上进行测试,以便查看页面内容的外观?如何查看加载了代码段的页面

当我点击指向我创建的页面的链接时,它只会说:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

嗯,我必须为我的初始起始页面定义一个子页面,因为我的全局页面指向localhost,当我转到localhost时,我被重定向到管理区域或上面提到的错误


我创建了一个子页面,并将slug设置为,例如-我的示例,然后当我转到localhost:3000/我的示例时,一切都正常了:

@elenasys您编辑了我的答案,只是为了在localhost:3000/我的示例和it之间添加两个空格。但是为什么呢?