Web Development  >>  Ruby On Rails

Performing Calculations on Models

Language : English Quality : High Has Audio : true Source : Other Media : QuickTime
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations.

Tags: Ruby On Rails, Ruby, Web Development, Screencast, Activerecord, Calculation,     [SUGGEST  A  TAG]

Resources referenced in this screencast
  • Ruby on Rails

  •  OR 
    Created : 2007-04-04   Duration : 02:57 (11.7 MB)


    (Requires : MPEG-4 Video Player)
    Download file is iPod compatable

    Articles Realted to this Topic

    [SUGGEST  A  ARTICLE]
    ActiveRecord Calculations
    This calculates aggregate values in the given column: Methods for count, sum, average, minimum, and maximum have been added as shortcuts. Options such as :conditions, :order, :group, :having, and :joins can be passed to customize the query
    19 Rails Tricks Most Rails Coders Don't Know
    When looking at my own Rails code and that of the community as a whole, I often see places where certain Rails techniques could have been used, but weren't. As much for my own memory as yours, I thought I'd list down some Rails tricks and tips that can make your application or code more efficient