折腾了半天默认页面,弄得头晕脑胀,一直以为自己的routes.rb配置有问题呢。
启动后访问localhost:3000/,总是那个默认的欢迎页面,最后提示“Set up a default route and remove or rename this file
Routes are setup in config/routes.rb.”
可是我一直没读懂“remove or rename this file”的含义,它也不说清楚点,应该这样写就比较好理解了“remove or rename /public/index.html”,sign
启动后访问localhost:3000/,总是那个默认的欢迎页面,最后提示“Set up a default route and remove or rename this file
Routes are setup in config/routes.rb.”
可是我一直没读懂“remove or rename this file”的含义,它也不说清楚点,应该这样写就比较好理解了“remove or rename /public/index.html”,sign
本文描述了作者在配置Rails项目的routes.rb过程中遇到的问题,即访问localhost:3000/时始终显示默认欢迎页面,并根据提示信息“Setup a default route and remove or rename this file”进行了解决。
7192

被折叠的 条评论
为什么被折叠?



