Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 414
Muhammad Rahmatullah Avatar asked Apr 23 '18 18:04

Muhammad Rahmatullah


1 Answers

have you tried to fix your route.rb

you can use this configuration :

devise_for :admins
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
like image 66
Radiet Billahirabba Avatar answered Sep 29 '22 13:09

Radiet Billahirabba