1. 首页
  2. 数据库
  3. 其它
  4. rails No route matches 错误的解决方法

rails No route matches 错误的解决方法

上传者: 2021-01-16 22:22:00上传 PDF文件 33.12KB 热度 16次
有时候 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 您可能感兴趣的文章:
下载地址
用户评论