1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-31 19:45:45 +00:00
Files
wrestlingdev.com/app/views/schools/index.html.erb
2013-12-31 11:23:43 -05:00

30 lines
607 B
Plaintext

<h1>Listing schools</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<% @schools.each do |school| %>
<tr>
<td><%= school.name %></td>
<td><%= school.score %></td>
<td><%= link_to 'Show', school %></td>
<td><%= link_to 'Edit', edit_school_path(school) %></td>
<td><%= link_to 'Destroy', school, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New School', new_school_path %>