Skip to content

Commit

Permalink
updated with correct information regarding the infinite redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Berry committed Sep 26, 2012
1 parent 49898d9 commit 70b5115
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70b5115

Please sign in to comment.