RailsCasts Pro episodes are now free!

Learn more or hide this

danielfliegauf's Profile

GitHub User: danielfliegauf

Comments by

Avatar

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:in
block in from_omniauth'
app/models/user.rb:3:in tap'
app/models/user.rb:3:in
from_omniauth'
app/controllers/sessions_controller.rb:3:in `create'