obdev/app/views/participants/index.html.erb

28 lines
744 B
Plaintext

<h1>Participants</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<!-- Add other participant attributes here -->
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @participants.each do |participant| %>
<tr>
<td><%= participant.name %></td>
<td><%= participant.address %></td>
<!-- Display other participant attributes here -->
<td><%= link_to 'Show', participant %></td>
<td><%= link_to 'Edit', edit_participant_path(participant) %></td>
<td><%= link_to 'Destroy', participant, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<%= link_to 'New Participant', new_participant_path %>