Gem 今天程序忽然出现问题,目前还没有定位问题在哪,望各位紧急指点

naitnix · 2012年12月05日 · 最后由 woaigithub 回复于 2012年12月06日 · 2235 次阅读

NoMethodError (undefined method options' for {}:Hash): <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/bundler/gems/rack-1824547e8dfa/lib/rack/session/abstract/id.rb&amp;line=309&amp;column=1">/bundler/gems/rack-1824547e8dfa/lib/rack/session/abstract/id.rb:309:incommit_session' /bundler/gems/rack-1824547e8dfa/lib/rack/session/abstract/id.rb:206:in context'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/bundler/gems/rack-1824547e8dfa/lib/rack/session/abstract/id.rb&amp;line=200&amp;column=1">/bundler/gems/rack-1824547e8dfa/lib/rack/session/abstract/id.rb:200:incall' /gems/actionpack-3.2.5/lib/action_dispatch/middleware/cookies.rb:338:in call'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/activerecord-3.2.5/lib/active_record/query_cache.rb&amp;line=64&amp;column=1">/gems/activerecord-3.2.5/lib/active_record/query_cache.rb:64:incall' /gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in call'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb&amp;line=28&amp;column=1">/gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' /gems/activesupport-3.2.5/lib/active_support/callbacks.rb:405:in _run__1624901490285996571__call__3823123465846478178__callbacks'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/callbacks.rb&amp;line=405&amp;column=1">/gems/activesupport-3.2.5/lib/active_support/callbacks.rb:405:in__run_callback' /gems/activesupport-3.2.5/lib/active_support/callbacks.rb:385:in _run_call_callbacks'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/callbacks.rb&amp;line=81&amp;column=1">/gems/activesupport-3.2.5/lib/active_support/callbacks.rb:81:inrun_callbacks' /gems/actionpack-3.2.5/lib/action_dispatch/middleware/callbacks.rb:27:in call'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.5/lib/action_dispatch/middleware/reloader.rb&amp;line=65&amp;column=1">/gems/actionpack-3.2.5/lib/action_dispatch/middleware/reloader.rb:65:incall' /gems/actionpack-3.2.5/lib/action_dispatch/middleware/remote_ip.rb:31:in call'</a> <a href="txmt://open?url=file:///home/naitnix/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.5/lib/action_dispatch/middleware/debug_exceptions.rb&amp;line=16&amp;column=1">/gems/actionpack-3.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' /gems/actionpack-3.2.5/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'

NoMethodError (undefined method options' for {}:Hash):

你的信息不是完整的吧。 是做什么类型的操作之后报错的呢? get,post,put,delete?

这些提示都是 rails 的代码,没有提到你自己写的代码。

啊,@woaigithub 谢谢了,我的问题解决了,是 rake 的版本问题,在 Gemfile 里面我的 rake 是这样的:gem 'rack', :git => 'git://github.com/rack/rack.git' 应该是这个 rake 有升级或者改动造成的,谢谢啦

没有必要,还是不要写从 git 获取这类笔记好吧,我认为是。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号