Created
May 3, 2019 16:40
-
-
Save johnnybenson/3c5f7dc614d44bbfb1445bf321fccd9d to your computer and use it in GitHub Desktop.
Simple way to alias Devise gem /login /logout without changing underlying configuration
This file contains hidden or 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_scope :user do | |
get '/login' => 'users/sessions#new', :as => 'login' | |
get '/logout' => 'users/sessions#destroy', :as => 'logout' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment