In my app, I have a User model, with a goal_ytd method, which performs some calculations.
User
goal_ytd
In a controller, I have a variable @users
@users
I like to use a combination of map and sum
map
sum
@users.map(&:goal_ydt).sum