Sha256: 895afdfaaad3cebc408eee6391d36addd52701276f0bc49442cb63a9ed92d496

Contents?: true

Size: 697 Bytes

Versions: 9

Compression:

Stored size: 697 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.devise_for :users
  map.devise_for :admin, :as => 'admin_area'
  map.devise_for :account, :path_names => {
    :sign_in => 'login', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification'
  }
  map.devise_for :organizers, :singular => 'manager'

  map.resources :users, :only => :index
  map.resources :admins, :only => :index
  map.root :controller => :home

  map.connect '/admin_area/password/new', :controller => "passwords", :action => "new"
  map.admin_root '/admin_area/home', :controller => "admins", :action => "index"

  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise-0.4.1 test/rails_app/config/routes.rb
devise-0.4.0 test/rails_app/config/routes.rb
devise-0.3.0 test/rails_app/config/routes.rb
devise-0.2.3 test/rails_app/config/routes.rb
devise-0.2.2 test/rails_app/config/routes.rb
devise-0.2.1 test/rails_app/config/routes.rb
devise-0.2.0 test/rails_app/config/routes.rb
devise-0.1.1 test/rails_app/config/routes.rb
devise-0.1.0 test/rails_app/config/routes.rb