手机
当前位置:查字典教程网 >脚本专栏 >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" 错误的解决方法】相关文章:

Ruby程序中正则表达式的基本使用教程

在Ruby on Rails中使用Markdown的方法

openSUSE下的Ruby安装openssl出错解决方法

ruby 异常处理:rescue

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

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

Ubuntu系统安装Ruby语言的三种方法

ruby开发的交互式程序例子

详解Ruby中范围的概念

ruby 对象的初始化 方法

精品推荐
分类导航