有时候 rails 会出现: "No route matches"错误, 可以利用如下方法解决; 找到 config/routes.rb 文件, 打开编辑,添加一行, 内容如下: map.connect '',:controller=>"index",:action=>"index"