This is the official OmniAuth strategy for authenticating to GitHub. To
use it, you'll need to sign up for an OAuth2 Application ID and Secret
on the GitHub Applications Page.
# config/routes.rb
Rails.application.routes.draw do
get 'auth/github/callback', to: 'sessions#callback'
get '/sign_out', to: 'sessions#destroy'
root 'homes#top'
end