RailsAdmin的路由错误

时间:2013-07-29 06:59:36

标签: ruby-on-rails rails-admin

我安装了rails admin(https://github.com/sferik/rails_admin)。但是现在当我去localhost:3000时我得到以下错误

No route matches {:controller=>"devise/access", :action=>"logout"}

我已将以下内容添加到我的routes.rb的顶部但是当我转到localhost:3000或localhost:3000 / admin

时仍然出现上述错误
devise_for :railsadmin_users
mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'

我该如何解决这个问题?

谢谢

1 个答案:

答案 0 :(得分:0)

这些是我使用Devise的管理路线,希望它有所帮助。

devise_for :admins, :controllers => { :registrations => "devise/registrations", :passwords => "devise/passwords" }

mount RailsAdmin::Engine => '/admin', :as => 'rails_admin'