Save user's gender and location from youtube login OAuth
问题 I have youtube login setup with OAuth2 and upon a successful user registration I would like to save the users gender and location in the database. Checking the OAuth docs https://developers.google.com/accounts/docs/OAuth2Login#userinfocall you can see that you can access a users gender and location along with things like name, email and their profile picture. Below is my code for saving a users info to the db user.rb def self.from_omniauth(auth) where(auth.slice(:provider, :uid)).first_or