手机
当前位置:查字典教程网 >脚本专栏 >ruby专题 >rails "No route matches" 错误的解决方法
rails "No route matches" 错误的解决方法
摘要:有时候rails会出现:"Noroutematches"错误,可以利用如下方法解决;找到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

【rails "No route matches" 错误的解决方法】相关文章:

Rails link_to 详解

Rails中遇到错误跳转到统一提示错误页的方法

ruby 异常处理:rescue

采用UTF-8解决Ruby on Rails程序的中问题

在Ruby on Rails中使用Markdown的方法

Ruby中使用Block、Proc、lambda实现闭包

rails 连接mysql的问题解决

详解Ruby中范围的概念

mac os gem安装json出现error failed的解决办法

在Ruby on Rails上使用Redis Store的方法

精品推荐
分类导航