Skip to content

Instantly share code, notes, and snippets.

@azuby
Created August 28, 2011 03:33
Show Gist options
  • Select an option

  • Save azuby/1176205 to your computer and use it in GitHub Desktop.

Select an option

Save azuby/1176205 to your computer and use it in GitHub Desktop.
Syncin::Application.routes.draw do
devise_for :users, :skip => [ :sessions, :registations ] do
get '/signin' => 'devise/sessions#new', :as => :new_user_session
post '/signin' => 'devise/sessions#create', :as => :user_session
delete '/signout' => 'devise/sessions#destroy', :as => :destroy_user_session
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 '/account/edit' => 'devise/registrations#edit', :as => :edit_user_registration
put '/account' => 'devise/registrations#update'
delete '/users' => 'devise/registrations#destroy'
end
.
.
.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment