i would like to use sum
self.score = self.votes.sum(&:score)
But this new method was not working
Can u explain me why ?
(For future reference, it is useful if you can post the actual error
message that you get, rather than just telling us that it doesn't