RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: HashNuke
Site: akash.im
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.
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.