RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: danielfliegauf
i did the same as explained in the cast (only server-side), but when i click on the link i always get only a code back like this:
{"code"=>"AQAlwnb3kkcjBB0qkPJbPFeTlroBOVO5_daVPuqUEeghQtQqK8cjlGf5qqaQOHXiFpQXsHY07jwHsVEo07i35YBhN33kruM94KV2NpZSWj_Vsw4CrfTUSUD6-GT4y_THeojXtLUJXWyM9TF3XnnFrBA_ECCn5nhoNynxB6KyUm8M8Uw23C2YeeJJuJd9-dUrLkg", "provider"=>"facebook"}
and therefore the
TypeError in SessionsController#create can't convert nil into an exact number
does anyone know what i am doing wrong? thank you! Daniel
app/models/user.rb:8:in at' app/models/user.rb:8:inblock in from_omniauth' app/models/user.rb:3:in tap' app/models/user.rb:3:infrom_omniauth' app/controllers/sessions_controller.rb:3:in `create'
at' app/models/user.rb:8:in
tap' app/models/user.rb:3:in
i did the same as explained in the cast (only server-side), but when i click on the link i always get only a code back like this:
{"code"=>"AQAlwnb3kkcjBB0qkPJbPFeTlroBOVO5_daVPuqUEeghQtQqK8cjlGf5qqaQOHXiFpQXsHY07jwHsVEo07i35YBhN33kruM94KV2NpZSWj_Vsw4CrfTUSUD6-GT4y_THeojXtLUJXWyM9TF3XnnFrBA_ECCn5nhoNynxB6KyUm8M8Uw23C2YeeJJuJd9-dUrLkg",
"provider"=>"facebook"}
and therefore the
TypeError in SessionsController#create
can't convert nil into an exact number
does anyone know what i am doing wrong?
thank you!
Daniel
app/models/user.rb:8:in
at'
block in from_omniauth'app/models/user.rb:8:in
app/models/user.rb:3:in
tap'
from_omniauth'app/models/user.rb:3:in
app/controllers/sessions_controller.rb:3:in `create'