Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.884 kB
Rails.application.routes.draw do |map|
map.resources :passwords,
:controller => 'clearance/passwords',
:only => [:new, :create]
map.resource :session,
:controller => 'clearance/sessions',
:only => [:new, :create, :destroy]
map.resources :users, :controller => 'clearance/users' do |users|
users.resource :password,
:controller => 'clearance/passwords',
:only => [:create, :edit, :update]
users.resource :confirmation,
:controller => 'clearance/confirmations',
:only => [:new, :create]
end
map.sign_up 'sign_up',
:controller => 'clearance/users',
:action => 'new'
map.sign_in 'sign_in',
:controller => 'clearance/sessions',
:action => 'new'
map.sign_out 'sign_out',
:controller => 'clearance/sessions',
:action => 'destroy',
:method => :delete
end
Jump to Line
Something went wrong with that request. Please try again.