<%= notice %>

Expenses

<% @expenses.each do |expense| %> <% end %>
Name Amount
<%= expense.name %> <%= expense.amount.to_currency %> <%= link_to "Show", expense %> <%= link_to "Edit", edit_expense_path(expense) %>
Total <%= @expenses.sum(&:amount).to_currency %>
<%= link_to "New expense", new_expense_path %>