Be more friendly if the user goes ahead and adds devise_for :users before defining the model.

This commit is contained in:
José Valim
2010-06-24 16:51:30 +02:00
parent ad63e25c89
commit 7a45043bc8
2 changed files with 7 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ Rails::Application.routes.draw do
devise_for :users
devise_for :admin, :path => "admin_area", :controllers => { :sessions => "sessions" }, :skip => :passwords
devise_for :accounts, :singular => "manager", :path_prefix => ":locale",
:class_name => "User", :path_names => {
devise_for :accounts, :singular => "manager", :path_prefix => ":locale", :class_name => "User",
:path_names => {
:sign_in => "login", :sign_out => "logout",
:password => "secret", :confirmation => "verification",
:unlock => "unblock", :sign_up => "register",