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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -