Permalink
Browse files

Update README with infinite redirect warning

This has stung me twice and is buried in the issues.
  • Loading branch information...
jc00ke committed Jun 1, 2012
1 parent 5016569 commit 0b435308c4590a36ca3ecabfb76394547262b53b
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.md
View
@@ -68,8 +68,26 @@ 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.
+The following will generate infinite redirects.
+
+```ruby
+mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
+devise_for :admins
+```
+
+Consider renaming your RailsAdmin namespace:
+
+```ruby
+mount RailsAdmin::Engine => '/cms', :as => 'rails_admin'
+devise_for :admins
+```
+
+See [#715](https://github.com/sferik/rails_admin/issues/715) for more details.
+
It will also add an intializer that will help you getting started. (head for config/initializers/rails_admin.rb)
+
Finally run:
$ bundle exec rake db:migrate

0 comments on commit 0b43530

Please sign in to comment.