Created
April 21, 2015 15:10
-
-
Save chrisyeung1121/68d965d681d972587627 to your computer and use it in GitHub Desktop.
Devise customising login paths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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