diff --git a/app/views/expenses/index.html.erb b/app/views/expenses/index.html.erb index a25f060..ad8c8a4 100644 --- a/app/views/expenses/index.html.erb +++ b/app/views/expenses/index.html.erb @@ -3,11 +3,19 @@

Expenses

+ + + + + + <% @expenses.each do |expense| %> - <%= render expense %> -

- <%= link_to "Show this expense", expense %> -

+ + + + + + <% end %>
NameAmount
<%= expense.name %><%= expense.amount %><%= link_to "Show", expense %><%= link_to "Edit", edit_expense_path(expense) %><%= link_to "Destroy", expense, method: :delete, data: { confirm: "Are you sure?" } %>