RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: GuilhermeSimoes
Nevermind, I guess I found the answer to my problem. Here's how I tackled it:
session["devise.omniauth"] = nil
You should change that session info to nil not after the creation action but immediately after building the resource.
I can use facebook omniauth locally. Perhaps your problem lies with your ssl certificate? I had that problem, you can see it's resolution here
Now, I have a question of my own. Using this method described by rbates, if a user successfully authenticates using Twitter which doesn't provide an email, he is taken to the signup page to complete the registration process. Now, if he doesn't complete the registration process, the @user remains in the session (I don't know how) so the next time you try to register, you'll have that authentication method attached to the created user, which could be a completely different user. How do I solve this? Basically, all I need to do is delete the user if I leave the signup page so how do I do that?