sferik/rails_admin — Issue #777: Error when devise User model has custom route path
Author: malffred
Created: 2011-10-14 05:05:48+00:00
State: open

I did a search but didn't' see anything.

I have devise already setup (1.8.7) and have a custom page for the routes:

In my rails_admin initializer I have this:

config.current_user_method { current_users, :path => "auth" } #auto-generated

In my routes.rb file I have this:

mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'
devise_for :users, :path => "auth"

When I start the rails server I get this error:

/config/initializers/rails_admin.rb:14: syntax error, unexpected tASSOC, expecting tCOLON2 or '[' or '.' (SyntaxError)
...ethod { current_users, :path => "auth" } #auto-generated

When I try to db:migrate I get the same.