<%= notice %>

Expenses

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