diff --git a/app/views/expenses/index.html.erb b/app/views/expenses/index.html.erb index 589b9c1..a55b835 100644 --- a/app/views/expenses/index.html.erb +++ b/app/views/expenses/index.html.erb @@ -15,7 +15,14 @@ <%= expense.amount %> <%= link_to "Show", expense %> <%= link_to "Edit", edit_expense_path(expense) %> + <% end %> + + Total + <%= @expenses.sum(&:amount) %> + + + <%= link_to "New expense", new_expense_path %>