PDA

View Full Version : certain active record methods not available


moephan
April 8th, 2006, 06:49 PM
Hello,

I am new to RoR, so I hope I can explain this in a way that makes sense.

I am trying to use the methods in "calculations.rb". When I try to access one, rails throws an error like this:

undefined method `maximum' for Person:Class

I noticed that my installation doesn't have te file "calculations.rb", so I am assuming that I have an older install. Since I just want these files, I tried downloading and copying "calculations.rb" into /vendor/activerecord/lib/active_record, but that didn't help.

Can someone help me understand what is going on here? Are these functions part of rails 1.1? Can I just copy that one file somewhere, or do I have to wait until my hoster upgrades?

TIA.

Cheers, Rick