Understanding how to use omniauth-github gem in conjunction with the Github API
问题 I've decided to use the omniauth-github gem in conjunction with the github_api gem. However, I'm not 100% sure how to use the authorization I've received back from github to use the github_api gem. I know Github.new basic_auth: 'user:password' and Github.new oauth_token 'token' but I'm not exactly sure how to get that token as a response. Any help would be appreciated! Thank you fellow rubyists. 回答1: If you add the following line of code at the beginning of your authentications/sessions