devise結合githubについては、omniauthで登録します。


最近githubアカウントを書いてDemoに登録しました。
https://github.com/yankforce/devise_オムニバスgithub
プレゼンテーションのアドレス:
http://devise-github.herokuapp.com
BASICバージョンは、githb omniauthだけです。これを参考にしてもいいです。
https://github.com/bay6/omniauth-github-example
デモ:
http://github-ominiauth.herokuapp.com
主に問題にぶつかる:

No route matches “/users/sign_out” devise rails 3

<div id="user_nav">
    <% if user_signed_in? %>
        Signed in as <%= current_user.email %>. This cannot be cheese?
        <%= link_to 'Sign out', destroy_user_session_path %>
    <% else %>
        <%= link_to 'Register', new_user_registration_path %> or <%= link_to 'Sign in', new_user_session_path %>
    <% end %>
</div>
deleteの方法を忘れました

<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
ログインを書き換えました。パスhookを終了します。

def after_sign_in_path_for(resource)
 current_user_path
end

def after_sign_out_path_for(resource_or_scope)
  request.referrer
end
deviseデフォルトのcall backアドレス
http://yourdomain.users/auth/github/callback
問題三

Undefined method omniauth_authorize_path

The fix, or at least the one that worked for me:
replace:
    omniauth_authorize_path(resource_name, provider)
with
    user_omniauth_authorize_path(provider)
解決策:

#  config/initializers/omniauth.rb 
#   config/initializers/devise.rb
config.omniauth :github, CONFIG[:facebook_key], CONFIG[:facebook_secret]
全体的にはdeviseのomniauthはomniauthの伝統的な構成を使用することができません。
https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview
いいえ
https://github.com/intridea/omniauth