Lets say I have a model:
class Result < ActiveRecord::Base attr_accessible :x, :y, :sum end
Inste
I'm completely beginner, just wondering Why not add a self block like below, without adding separate column in db, you still can access Sum.sum from outside.
def self.sum x+y end