Sha256: a4dae21f1d648af6ccf5242f25e665be9b926bc9583e4a01585686438cebe18e

Contents?: true

Size: 822 Bytes

Versions: 1

Compression:

Stored size: 822 Bytes

Contents

Rails::Application.routes.draw do
  resources :users, :only => [:index] do
    get :expire, :on => :member
  end

  resources :admins, :only => [:index]

  devise_for :users
  devise_for :admin, :as => "admin_area", :controllers => { :sessions => "sessions" }, :skip => :passwords
  devise_for :accounts, :scope => "manager", :path_prefix => ":locale",
    :class_name => "User", :path_names => {
      :sign_in => "login", :sign_out => "logout",
      :password => "secret", :confirmation => "verification",
      :unlock => "unblock", :sign_up => "register"
    }

  match "/admin_area/home", :to => "admins#index", :as => :admin_root
  match "/sign_in", :to => "devise/sessions#new"

  # Dummy route for new admin pasword
  match "/anywhere", :to => "foo#bar", :as => :new_admin_password

  root :to => "home#index"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-1.1.rc0 test/rails_app/config/routes.rb