RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: magicmike
Apropos my post above, it seems twitter have changed their data structure, so it was getting a null. Try this:
def self.create_with_omniauth(auth) create! do |user| user.provider = auth["provider"] user.uid = auth["uid"] user.name = auth["info"]["name"] end
This worked once, but now whenever I try it, I get:
No route matches [GET] "/auth/failure"
I think this is because Twitter only lets the app do something once (add itself?) and it is trying to do it again.
Does anyone know how to fix this?
Thanks!
Apropos my post above, it seems twitter have changed their data structure, so it was getting a null. Try this:
This worked once, but now whenever I try it, I get:
I think this is because Twitter only lets the app do something once (add itself?) and it is trying to do it again.
Does anyone know how to fix this?
Thanks!