ActiveRecord class method count issues

All -

I’m using ActiveRecord outside of the rails framework and I’m having an
issue using the class method count. I’m connected to an Oracle 10g
database and my find commands are working fine:

Employee.find(:first) -> Gives me the first record just as expected

However, when I try:

Employee.count

I get the following error:

irb(main):004:0> Employee.count
ActiveRecord::ConnectionNotEstablished:
ActiveRecord::ConnectionNotEstablished

I literally did these lines one after another in the same irb session.
Bizarre…

Thanks,
Drew

Drew O. wrote:

All -

I’m using ActiveRecord outside of the rails framework and I’m having an
issue using the class method count. I’m connected to an Oracle 10g
database and my find commands are working fine:

Employee.find(:first) -> Gives me the first record just as expected

However, when I try:

Employee.count

I get the following error:

irb(main):004:0> Employee.count
ActiveRecord::ConnectionNotEstablished:
ActiveRecord::ConnectionNotEstablished

I literally did these lines one after another in the same irb session.
Bizarre…

Thanks,
Drew

I’m having the same problem. Did you ever find a solution?

Earle