Dining Charges CRUD

This commit is contained in:
Phyo
2017-08-11 17:53:48 +06:30
parent 2cad08277e
commit 740038757d
16 changed files with 108 additions and 30 deletions

View File

@@ -0,0 +1,25 @@
<p id="notice"><%= notice %></p>
<h1>Dining Charges</h1>
<table>
<thead>
<tr>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @dining_charges.each do |dining_charge| %>
<tr>
<td><%= link_to 'Show', dining_charge %></td>
<td><%= link_to 'Edit', edit_dining_charge_path(dining_charge) %></td>
<td><%= link_to 'Destroy', dining_charge, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Dining Charge', new_dining_charge_path %>