Pregunta

Estoy teniendo un error raro cuando se utiliza OmniAuth. Esto parece tener poco que ver con mi código.

Es este el resultado de Twitter regresar algún objeto extraño deforme?

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'
¿Fue útil?

Solución

Ahora funciona. Yo altamente sospechoso que se trata de un retorno deformada por Twitter.

Otros consejos

He tenido un problema similar. borrar la memoria caché del navegador resolvió.

slothistype

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top