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.
28c315da59bc0bc0a544ed4a75ad26e9?d=identicon&s=25 Pierre-Alexandre Meyer (Guest)
on 2007-03-06 19:53
(Received via mailing list)
On Tue, Mar 06, 2007 at 07:23:53PM +0100, Drew Olson 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 Meyer |
| email : |
This topic is locked and can not be replied to.