I have my Model<ActiveRecord::Base , but whenever I try something like Model.calculate() or Model.maximum ... I get NoMethodErrors. Why can I use any of the other ActiveRecord methods, but none from Calculations and what do I do to remedy this? thanks -- Posted via http://www.ruby-forum.com/.
harl wrote:> I have my Model<ActiveRecord::Base , > > but whenever I try something like > > Model.calculate() or Model.maximum ... > > I get NoMethodErrors. > > Why can I use any of the other ActiveRecord methods, but none from > Calculations > and what do I do to remedy this? > > > thanksHai harl I think the method name is matched with the field name of ur database table check it. -- Posted via http://www.ruby-forum.com/.