i have budgets table with emptype_id and calendar_id actual_head, estimated_head
when i do Budgets.sum(:actual_head ,:group=>\"emptype_id,calendar_id\")
Budgets.sum(:actual_head ,:group=>\"emptype_id,calendar_id\")
I'm not sure of this, buy try :group => [:emptype_id, :calendar_id]
:group => [:emptype_id, :calendar_id]