Skip to content

Instantly share code, notes, and snippets.

@johnnybenson
Created May 3, 2019 16:40
Show Gist options
  • Save johnnybenson/3c5f7dc614d44bbfb1445bf321fccd9d to your computer and use it in GitHub Desktop.
Save johnnybenson/3c5f7dc614d44bbfb1445bf321fccd9d to your computer and use it in GitHub Desktop.
Simple way to alias Devise gem /login /logout without changing underlying configuration
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