sferik/rails_admin — Issue #932: NoMethodError in RailsAdmin::MainController#dashboard
Author: te-chris
Created: 2012-01-19 02:12:48+00:00
State: open

When I try and access RailsAdmin I'm getting the following error:

undefined method `record_count' for #

This is the server log:

Started GET "/admin" for 127.0.0.1 at 2012-01-19 14:53:55 +1300
Processing by RailsAdmin::MainController#dashboard as HTML
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
RailsAdmin::History Load (0.5ms) select count(*) as record_count, year, month from rails_admin_histories where month IN (9,10,11,12) and year = 2011 group by year, month
RailsAdmin::History Load (0.2ms) select count(*) as number, year, month from rails_admin_histories where month IN (1) and year = 2012 group by year, month
Completed 500 Internal Server Error in 133ms

NoMethodError (undefined method `record_count' for #):