Skip to content

Instantly share code, notes, and snippets.

@chrisyeung1121
Created April 21, 2015 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisyeung1121/68d965d681d972587627 to your computer and use it in GitHub Desktop.
Save chrisyeung1121/68d965d681d972587627 to your computer and use it in GitHub Desktop.
Devise customising login paths
devise_for :users,
:skip => [:registrations, :sessions]
as :user do
# Sessions
get '/login2' => 'users/sessions#new', :as => :new_user_session
# :new_user_session is being defined by devise_for :users already, so have to use :skip!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment