论坛首页 编程语言技术论坛

rails应用抛异常,全是Framework Trace,没有Application Trace

浏览 1601 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (7) :: 隐藏帖 (3)
作者 正文
   发表时间:2010-09-11  
就是一个link_to调用,错误是wrong number of arguments (0 for 1)

实际上那个action没有参数,并不需要传递参数。

没有Application Trace

Framework Trace:
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `new'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:391:in `process'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/base.rb:386:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/routing/route_set.rb:438:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:87:in `dispatch'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:121:in `_call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:29:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:9:in `cache'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/query_cache.rb:28:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/string_coercion.rb:25:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/params_parser.rb:15:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/session/cookie_store.rb:99:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:26:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:114:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/reloader.rb:34:in `run'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:108:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/static.rb:31:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/rack/log_tailer.rb:17:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in `service'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/ruby-1.8.7/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in `run'
/usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111
/usr/local/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/ruby-1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3

会不会是rails的bug阿?

开发环境ubuntu 10.04 ruby 1.8.7 rails 2.3.8
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics