Files
grecia/app/views/admin/budgets/show.html.erb
rgarcia 1083213ac7 Order budget groups by id
To maintain order after editing a group’s name

We should probably add timestamps to `groups` and `headings` and order
by `created_at` instead
2018-03-22 10:19:56 +01:00

8 lines
177 B
Plaintext

<%= back_link_to admin_budgets_path %>
<h2><%= @budget.name %></h2>
<div id="<%= dom_id @budget %>_groups">
<%= render "groups", groups: @budget.groups.order(:id) %>
</div>