From 70b51158b434a3d13f9b923eff3b9a63234a8ee0 Mon Sep 17 00:00:00 2001 From: Eric Berry Date: Wed, 26 Sep 2012 10:00:06 -0600 Subject: [PATCH] updated with correct information regarding the infinite redirect issue --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4bb5584c0c..5979da55c5 100644 --- a/README.md +++ b/README.md @@ -83,15 +83,15 @@ It will modify your `config/routes.rb`, adding: mount RailsAdmin::Engine => '/admin', :as => 'rails_admin' # Feel free to change '/admin' to any namespace you need. ``` -Note: Your RailsAdmin namespace cannot match your Devise model name, or you will get an infinite redirect error. +Note: The `devise_for` route must be placed before the mounted engine. The following will generate infinite redirects. The following will generate infinite redirects. ```ruby -devise_for :admins mount RailsAdmin::Engine => '/admin', :as => 'rails_admin' +devise_for :admins ``` -Consider renaming your RailsAdmin namespace: +This will resolve the infinite redirect error: ```ruby devise_for :admins