Sha256: b19af0677bbf361c309509e996d7392242207f341175989ce67f833455c77694

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

Rails.application.routes.draw do
  resources :passwords,
    :controller => 'clearance/passwords',
    :only => [:create, :new]

  resource :session,
    :controller => 'clearance/sessions',
    :only => [:create]

  resources :users,
    :controller => 'clearance/users',
    :only => [:create] do
      resource :password,
        :controller => 'clearance/passwords',
        :only => [:create, :edit, :update]
    end

  get '/sign_in' => 'clearance/sessions#new', :as => 'sign_in'
  delete '/sign_out' => 'clearance/sessions#destroy', :as => 'sign_out'
  get '/sign_up' => 'clearance/users#new', :as => 'sign_up'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
clearance-1.1.0 config/routes.rb
clearance-1.0.1 config/routes.rb
clearance-1.0.0 config/routes.rb
clearance-1.0.0.rc8 config/routes.rb