mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-14 17:06:46 +00:00
Added basic scaffolds for schools wrestlers and weights
This commit is contained in:
29
app/views/schools/index.html.erb
Normal file
29
app/views/schools/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<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 %>
|
||||
Reference in New Issue
Block a user