有時候 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