Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 754 Bytes
Rails.application.routes.draw do
resources :passwords,
:controller => 'clearance/passwords',
:only => [:new, :create]
resource :session,
:controller => 'clearance/sessions',
:only => [:new, :create, :destroy]
resources :users, :controller => 'clearance/users' do
resource :password,
:controller => 'clearance/passwords',
:only => [:create, :edit, :update]
resource :confirmation,
:controller => 'clearance/confirmations',
:only => [:new, :create]
end
match 'sign_up' => 'clearance/users#new', :as => 'sign_up'
match 'sign_in' => 'clearance/sessions#new', :as => 'sign_in'
match 'sign_out' => 'clearance/sessions#destroy', :via => :delete, :as => 'sign_out'
end
Jump to Line
Something went wrong with that request. Please try again.