Welcome to Dovetail Software Blogs : Sign in | Join | Help

Steven "Doc" List, Agile Novice

VP of Software Development learning to be agile
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

   1: Tasks.sum

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)

Posted: Monday, December 31, 2007 12:58 PM by slist

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  

Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS