blob: 5abd2c22d604a645dc91cc3d950398b92f1f4bed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<h1>Pinball Machines</h1>
<table>
<thead>
<th>Name</th>
<th>Edition</th>
</thead>
<tbody>
<% @machines.each do |machine| %>
<tr>
<td><%= link_to machine.name, edit_machine_path(machine) %></td>
<td><%= machine.edition %></td>
</tr>
<% end %>
</tbody>
</table>
<hr>
<p><%= @machines.size %> available machines</p>
<%= link_to "+ Add Machine", new_machine_path %>
|