ActiveRecords::Calculations

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

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?

thanks

Hai harl

I think the method name is matched with the field name of ur database
table
check it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs