chsboy 2010-06-11 00:30
浏览 418
已采纳

rails报错:No route matches "/say/hello" with {:method=>:get}):

按照robbin的文档安装好rails环境ruby1.8.7、rails2.1,启动服务: ruby script/server这都没问题,可是访问应用时报错:No route matches,具体日志如下:
[code="java"]
Processing ApplicationController#index (for 127.0.0.1 at 2010-06-10 21:44:23) [GET]
Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
SGFzaHsABjoKQHVzZWR7AA==--e8d6aac3c058870923dc857beb7ce73a66838044
Parameters: {}

ActionController::RoutingError (No route matches "/say/hello" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:67:in recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:384:in
recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:148:in handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in
dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in
dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in
dispatch'
/vendor/rails/railties/lib/fcgi_handler.rb:103:in process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:153:in
with_signal_handler'
/vendor/rails/railties/lib/fcgi_handler.rb:101:in process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:78:in
process_each_request'
/usr/local/lib/site_ruby/1.8/fcgi.rb:612:in each_cgi'
/usr/local/lib/site_ruby/1.8/fcgi.rb:609:in
each'
/usr/local/lib/site_ruby/1.8/fcgi.rb:609:in each_cgi'
/vendor/rails/railties/lib/fcgi_handler.rb:77:in
process_each_request'
/vendor/rails/railties/lib/fcgi_handler.rb:76:in catch'
/vendor/rails/railties/lib/fcgi_handler.rb:76:in
process_each_request'
/vendor/rails/railties/lib/fcgi_handler.rb:50:in process!'
/vendor/rails/railties/lib/fcgi_handler.rb:24:in
process!'
/public/dispatch.fcgi:26

Rendering /home/cmaster/web/demo/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (not_found)
[/code]

展开全部

  • 写回答

2条回答 默认 最新

  • Fireflyman 2010-06-11 01:28
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 下面三个文件分别是OFDM波形的数据,我的思路公式和我写的成像算法代码,有没有人能帮我改一改,如何解决?
  • ¥15 Ubuntu打开gazebo模型调不出来,如何解决?
  • ¥100 有chang请一位会arm和dsp的朋友解读一个工程
  • ¥50 求代做一个阿里云百炼的小实验
  • ¥20 DNS服务器所在的国家不同与你的IP地址所在国家
  • ¥15 查询优化:A表100000行,B表2000 行,内存页大小只有20页,运行时3页,设计两个表等值连接的最简单的算法
  • ¥15 led数码显示控制(标签-流程图)
  • ¥20 为什么在复位后出现错误帧
  • ¥15 结果有了,想问一下这个具体怎么输入
  • ¥15 怎么修改鸿蒙app的UI及功能设计
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部