23 lines
418 B
Plaintext
23 lines
418 B
Plaintext
<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 %>
|
|
|