From b91335f4953cc018078784714ffddf850d8f631a Mon Sep 17 00:00:00 2001 From: Corentin Delcourt Date: Mon, 17 Mar 2014 09:27:03 +0100 Subject: [PATCH] Fix typo in example for sum --- docs/find.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/find.md b/docs/find.md index b381522..8e382ec 100644 --- a/docs/find.md +++ b/docs/find.md @@ -387,7 +387,7 @@ Friend.avg(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the averag # Get the total value of a property Friend.sum(:age) # returns total age of all friends -Friend.max(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the total age of all female friends +Friend.sum(:age, :conditions => [ 'gender = ?', 'female' ]) # returns the total age of all female friends {% endhighlight %} Multiple aggregates