mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-01 03:55:44 +00:00
Ordered wrestlers correctly on school page
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @wrestlers.order("weight_id asc").each do |wrestler| %>
|
||||
<% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %>
|
||||
<% if wrestler.school_id == @school.id %>
|
||||
<tr>
|
||||
<td><%= wrestler.name %></td>
|
||||
|
||||
Reference in New Issue
Block a user