chsboy 2010-06-08 08:28
浏览 371
已采纳

rails应用在webrick下可以跑起来,在lighttpd下报no route的错?

development.log报错如下:[code="java"]
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/emporium/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (not_found)

[/code]

  • 写回答

4条回答 默认 最新

  • myali88 2010-06-10 12:41
    关注

    看看lighttpd启动的日志error.log

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 cpuid是如何转换的
  • ¥15 MddBootstrapInitialize2失败
  • ¥15 LCD Flicker
  • ¥15 Spring MVC项目,访问不到相应的控制器方法
  • ¥15 esp32在micropython环境下使用ssl/tls连接mqtt服务器出现以下报错Connected on 192.168.154.223发生意外错误: 5无法连接到 MQTT 代理,如何解决?
  • ¥15 关于#genesiscsheel#的问题,如何解决?
  • ¥15 Android aidl for hal
  • ¥15 STM32CubeIDE下载程序报错
  • ¥15 微信好友如何转变为会员系统?(相关搜索:小程序)
  • ¥15 c# 直接使用c++ 类库文件