Skip to content

Commit 70b5115

Browse files
author
Eric Berry
committed
updated with correct information regarding the infinite redirect issue
1 parent 49898d9 commit 70b5115

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ It will modify your `config/routes.rb`, adding:
8383
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin' # Feel free to change '/admin' to any namespace you need.
8484
```
8585

86-
Note: Your RailsAdmin namespace cannot match your Devise model name, or you will get an infinite redirect error.
86+
Note: The `devise_for` route must be placed before the mounted engine. The following will generate infinite redirects.
8787
The following will generate infinite redirects.
8888

8989
```ruby
90-
devise_for :admins
9190
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
91+
devise_for :admins
9292
```
9393

94-
Consider renaming your RailsAdmin namespace:
94+
This will resolve the infinite redirect error:
9595

9696
```ruby
9797
devise_for :admins

0 commit comments

Comments
 (0)