有時(shí)候 rails 會(huì)出現(xiàn): "No route matches"錯(cuò)誤, 可以利用如下方法解決; 找到 config/routes.rb 文件, 打開編輯, 找到如下行: # See how all your routes lay out with "rake routes" 在這行下面添加一行, 內(nèi)容如下: map.connect '',:controller=>"index",:action=>"index"
解決no such file to load — Mysql 代碼如下: > rails -d mysql myapp