Working Through the Railscasts - #14 - Performing Calculations on Models
It continues to amaze me how much stuff the Rails team has built into Rails.
In this case, it's being able to perform calculations on collections of model objects. While you can do that in any language, it usually requires a block of code.
In this Railscast, Ryan shows us how you can do it with a single method, like
The implications are wonderful. Now I just need to look up the list of all of them - yet another opportunity to read the Rdocs! (Yes, really - I like it)