Facing NoMethodError in RailsAdmin::MainController#dashboard when trying to configure rails admin for the first time -


i following official rails admin git hub page install , configure rails admin on rails application.

i added

gem 'rails_admin', '~> 1.2' on gem file

and ran rails g rails_admin:install and

kept localhost:3000/admin default route.

when entered localhost:3000/admin, getting following error

nomethoderror in railsadmin::maincontroller#dashboard  private method `all' called #<class:0x007f9afe494be8> 

this because of mistakes done in model, please cross check model have defined

private method `all' called #<class:0x007f9afe494be8> 

"all"

method., or comment block of code test restart server , see if works or not.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -