Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Swart's Profile

GitHub User: magicmike

Comments by Swart

Avatar

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
Avatar

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!