Skip to content

Instantly share code, notes, and snippets.

@monkbroc
Created February 18, 2015 17:23
Show Gist options
  • Select an option

  • Save monkbroc/0db73db8ced711c6485a to your computer and use it in GitHub Desktop.

Select an option

Save monkbroc/0db73db8ced711c6485a to your computer and use it in GitHub Desktop.
OmniAuth routes
Rails.application.routes.draw do
devise_for :users, :controllers => {
:omniauth_callbacks => "users/omniauth_callbacks"
}
devise_scope :user do
get 'sign_in', :to => 'devise/sessions#new', :as => :new_user_session
delete 'sign_out', :to => 'devise/sessions#destroy', :as => :destroy_user_session
end
root 'home#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment