Skip to content

Instantly share code, notes, and snippets.

@jbonney
Created October 11, 2013 12:48
Show Gist options
  • Save jbonney/6934065 to your computer and use it in GitHub Desktop.
Save jbonney/6934065 to your computer and use it in GitHub Desktop.
devise_for :users, :skip => [:registrations, :sessions] do
# devise/registrations
get 'signup' => 'devise/registrations#new', :as => :new_user_registration
post 'signup' => 'devise/registrations#create', :as => :user_registration
get 'users/cancel' => 'devise/registrations#cancel', :as => :cancel_user_registration
get 'users/edit' => 'devise/registrations#edit', :as => :edit_user_registration
put 'users' => 'devise/registrations#update'
delete 'users/cancel' => 'devise/registrations#destroy'
# devise/sessions
get 'signin' => 'devise/sessions#new', :as => :new_user_session
post 'signin' => 'devise/sessions#create', :as => :user_session
get 'signout' => 'devise/sessions#destroy', :as => :destroy_user_session
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment