Forum: Ruby on Rails Re: ActiveRecord class method count issues

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pierre-Alexandre M. (Guest)
on 2007-03-06 20:53
(Received via mailing list)
On Tue, Mar 06, 2007 at 07:23:53PM +0100, Drew O. wrote :
> irb(main):004:0> Employee.count
> ActiveRecord::ConnectionNotEstablished:
> ActiveRecord::ConnectionNotEstablished

What's your Rails version?
You need to have ActiveRecord::Calculations module (Rails > 1.1).

Do you have output debug from the db?

| Pierre-Alexandre M. |
| email : removed_email_address@domain.invalid |
This topic is locked and can not be replied to.