Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Akash Manohar J's Profile

GitHub User: HashNuke

Site: akash.im

Comments by Akash Manohar J

Avatar

I used Google as an OpenID provider and needed the user's email address.

In the create_with_omniauth method use this:

auth["user_info"]["email"]

to get the email address of the user. You'll have to add a new field to the User model to save it tho.