initial commit
This commit is contained in:
29
app/views/results/index.html.erb
Normal file
29
app/views/results/index.html.erb
Normal file
@@ -0,0 +1,29 @@
|
||||
<h1>Listing results</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User</th>
|
||||
<th>Time</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @results.each do |result| %>
|
||||
<tr>
|
||||
<td><%= result.user_id %></td>
|
||||
<td><%= result.time %></td>
|
||||
<td><%= link_to 'Show', result %></td>
|
||||
<td><%= link_to 'Edit', edit_result_path(result) %></td>
|
||||
<td><%= link_to 'Destroy', result, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Result', new_result_path %>
|
||||
Reference in New Issue
Block a user