rails "No route matches" 错误的解决方法
2008-12-22 11:28
615 查看
有时候 rails 会出现:
"No route matches"错误,
可以利用如下方法解决;
找到 config/routes.rb 文件, 打开编辑, 找到如下行:
# See how all your routes lay out with "rake routes"
在这行下面添加一行, 内容如下:
map.connect '',:controller=>"index",:action=>"index"
"No route matches"错误,
可以利用如下方法解决;
找到 config/routes.rb 文件, 打开编辑, 找到如下行:
# See how all your routes lay out with "rake routes"
在这行下面添加一行, 内容如下:
map.connect '',:controller=>"index",:action=>"index"
相关文章推荐
- rails "No route matches" 错误的解决方法
- rails "No route matches" 错误的解决方法
- rails出现No route matches [POST] "/user/register"错误
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- rails 4 + devise 3.1.0 中退出登录出现 No route matches [GET] "/users/sign_out" 错误
- "error: Error retrieving parent for item: No resource found that matches" 错误的解决方法
- "The identity used to sign the executable is no longer valid"错误解决方法
- Keil编译错误:L6236E: No section matches selector - no section的解决方法
- "The identity used to sign the executable is no longer valid"错误解决方法
- Delphi中TMediaPlayer播放音乐出现"no MCI device open"的错误的解决方法
- nginx运行php"No input file specified"错误的解决方法
- [ios]"The identity used to sign the executable is no longer valid"错误解决方法
- hibernate中实体类构造方法中含有Timestamp 类型变量的"no appropriate constructor.." 错误提示的解决办法
- [Python]"no encoding declared 错误"解决方法
- [Python]"no encoding declared 错误"解决方法
- 关于Keil编译错误 L6236E: No section matches selector - no section 的解决方法
- 4、错误"no GUID has been associated with this object"的解决方法
- [Python]"no encoding declared 错误"解决方法
- [Python]"no encoding declared 错误"解决方法
- cvsNT 2.5.03.2382添加用户后出现"no such user"错误的解决方法