新手问题 关于 rails 路由

anleb · June 03, 2012 · Last by zw963 replied at June 04, 2012 · 2568 hits

我设定了主页为:root:to=>"my#my"

为什么输入 127.0.0.1:3000 是默认的网站,不是我自己的 index

必须要输入 localhost:3000 才是我自己的

试试将 public/index 删了

appfolder/public/index.html 这个文件删除或改名,应该能解决吧!

#2 楼 @zmbacker 我已经删掉了,问题依旧

试下清缓存 如果是在production环境下重启 root:to=>"my#my" root:to 中间怎么没有空格

默认的网站

是指什么?

同问"默认网站"是什么? 是显示的 public/index.html 这个文件的内容么? 说具体点吧。

问题 解决了,只要重启了 server 服务即可。

这问题...

You need to Sign in before reply, if you don't have an account, please Sign up first.