Sha256: 8e53e7e211a904cf63b7e8fd7db265ee14f5b6a20b77d7184756d75ff71feed2

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

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

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

  resources :users,
    :controller => 'clearance/users',
    :only => [:create, :new] 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

2 entries across 2 versions & 1 rubygems

Version Path
clearance-1.0.0.rc7 config/routes.rb
clearance-1.0.0.rc6 config/routes.rb