当前位置: 移动技术网 > IT编程>脚本编程>Ruby > rails "No route matches" 错误的解决方法

rails "No route matches" 错误的解决方法

2017年12月12日  | 移动技术网IT编程  | 我要评论
有时候 rails 会出现: "no route matches"错误, 可以利用如下方法解决; 找到 config/routes.rb 文件, 打开编辑, 找到如下行:
有时候 rails 会出现:
"no route matches"错误,
可以利用如下方法解决;
找到 config/routes.rb 文件, 打开编辑, 找到如下行:
# see how all your routes lay out with "rake routes"
在这行下面添加一行, 内容如下:
map.connect '',:controller=>"index",:action=>"index"

解决no such file to load — mysql
复制代码 代码如下:

> rails -d mysql myapp

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网