Search code examples
ruby-on-railsrubyherokurails-admin

rails_admin keep giving me undefined local variable or method `rails_admin' when access dashboard


I've followed this:

https://github.com/sferik/rails_admin

And I think I've done everything needed, bundle install, rake db:migrate etc but I can't get rid of:

undefined local variable or method "rails_admin" for #<#<Class:0x0055e4c3e49c30>:0x0055e4c2e61db8>

enter image description here ` Any ideas?


Solution

  • have you tried to fix your route.rb

    you can use this configuration :

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