0
使用Omniauth時出現奇怪的錯誤。這似乎與我的代碼沒有多大關係。使用OmniAuth時無對象錯誤(通常有效)
這是Twitter返回怪異變形對象的結果嗎?
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
oa-oauth (0.1.6) lib/omniauth/strategies/oauth.rb:24:in `callback_phase'
oa-core (0.1.6) lib/omniauth/strategy.rb:27:in `call!'
oa-core (0.1.6) lib/omniauth/strategy.rb:19:in `call'
oa-core (0.1.6) lib/omniauth/builder.rb:30:in `call'
haml (3.0.24) lib/sass/plugin/rack.rb:41:in `call'
您是否添加了必要的回調路線?即匹配'/ auth /:provider/callback',:to =>'sessions#create' – monocle 2010-12-06 14:22:44