Hi Brain,
Thanks for the hint! Is it possible to calculate the average of a star
rating field, for example, from all of the reviews (children) of a
book (parent)? Or would this only work if I were trying to calculate
an average of some field within a single model? If it's possible to
calculate this for a parent based on all its children, would I want to
put the calculation in the child model or the parent model?
Thanks,
Jake
On Apr 29, 9:22 am, Bryan Larsen <
br...@larsen.st> wrote:
> Here's a starting hint:
>
>
http://ar.rubyonrails.org/classes/ActiveRecord/Calculations/ClassMeth...