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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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 : pam@mouraf.org |
`========================'
This topic is locked and can not be replied to.