mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-13 01:07:03 +00:00
Entered devise secret key
This commit is contained in:
33
app/views/tournaments/index.html.erb
Normal file
33
app/views/tournaments/index.html.erb
Normal file
@@ -0,0 +1,33 @@
|
||||
<h1>Listing tournaments</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Address</th>
|
||||
<th>Director</th>
|
||||
<th>Director email</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @tournaments.each do |tournament| %>
|
||||
<tr>
|
||||
<td><%= tournament.name %></td>
|
||||
<td><%= tournament.address %></td>
|
||||
<td><%= tournament.director %></td>
|
||||
<td><%= tournament.director_email %></td>
|
||||
<td><%= link_to 'Show', tournament %></td>
|
||||
<td><%= link_to 'Edit', edit_tournament_path(tournament) %></td>
|
||||
<td><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Tournament', new_tournament_path %>
|
||||
Reference in New Issue
Block a user