Sha256: 270416bafe184c3e56032655f639c1407502bf9159ccde9da7b7668047b1b163

Contents?: true

Size: 884 Bytes

Versions: 5

Compression:

Stored size: 884 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
clearance-0.9.0.rc5 config/routes.rb
clearance-0.9.0.rc4 config/routes.rb
clearance-0.9.0.rc3 config/routes.rb
clearance-0.9.0.rc2 config/routes.rb
clearance-0.9.0.rc1 config/routes.rb