mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-06 22:37:33 +00:00
Fixed the mat#show route by defining the correct vars in the controller and added a route for assign_next_match on mat
This commit is contained in:
@@ -110,7 +110,8 @@
|
||||
<% if can? :manage, @tournament %>
|
||||
<td>
|
||||
<%= link_to '', mat, method: :delete, data: { confirm: "Are you sure you want to delete Mat #{mat.name}?" }, :class=>"fas fa-trash-alt" %>
|
||||
</td>
|
||||
<%= link_to '', "/mats/#{mat.id}/assign_next_match", method: :post, :class=>"fas fa-solid fa-arrow-right" %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user