 <pre><code>&lt;%= i.awards.sum(:points) %&gt; </code></pre> <p>For for the sum of all points from all recipes:</p> <pre><code>&lt;%= @user.recipes.map { |r| r.awards.sum(:points) }.sum %&gt; </code></pre> <p>Although it might be sensible to do this calculation within the model. You'll remove a lot of duplication that way if you use it in more than one view.</p> <p>UPDATE:</p> <p>As per the comments below, you could also ask the DB to calculate the sum for you:</p> <pre><code>&lt;%= @user.recipes.joins(:awards).sum('awards.points') %&gt; </code></pre>