Example I have:
@test = Pakke.find([[4], [5]])
In my Pakke table I have a column named prismd
prismd
How do I sum the two val
ActiveRecord has a bunch of built-in calculation methods, including sum:
@test = Pakke.where(:id => [4, 5] ).sum(:prismd)