ruby on rails - Devise login straight with github -


im using devise user registration , have link redirects login page.

<%= link_to "user sign in", new_user_session_path, :class => "btn btn-default navbar-btn" %> 

iv set omniauth using following tutorial.

the link_to i'm using above takes me devise sign_in page have click on sign in github redirects me login github.

i rather skip sign-up page , once click on above link_to want go straight github authentication.

you should able use following link_to helper in view of app:

<%= link_to "sign in github", user_omniauth_authorize_path(:github) %> 

you can find more info devise-omniauth integration here.


Comments