<% @cart.items.each do |item| %>
<div class="holder">
<div class="image"><%= link_to (image_tag (item.product.avatar.url(:thumb))), item.product %></div>
<div class="title"><%= link_to item.product.title, item.product %></div>
<div class="count"><%= item.count %></div>
<div class="price"><%= number_to_currency(item.product.price, :unit => '€ ') %></div>
<div class="description"><%= item.product.description.truncate(110).html_safe %></div>
</div>
<% end %>
<div class="total">Total price: @price</div>
I'd like to get the total sum of item.product.price column for each cart and then display it at the end of the carts list. How can that be done?