<%= notice %>

Name: <%= @school.name %>

Score: <%= @school.score %>

Tournament: <%= Tournament.find(@school.tournament_id).name %>

<%= link_to "Edit #{@school.name}", edit_school_path(@school) %> | <%= link_to 'Back to Schools', schools_path %> | <%= link_to 'Back to Admin', '/admin/index' %>

<%= link_to "New #{@school.name} Wrestler" , "/wrestlers/new?school=#{@school.id}" %>

<% @wrestlers.each do |wrestler| %> <% if wrestler.school_id == @school.id %> <% end %> <% end %>
Name Weight Seed Original seed Actions
<%= wrestler.name %> <%= Weight.find(wrestler.weight_id).max %> <%= wrestler.seed %> <%= wrestler.original_seed %> <%= link_to 'Show', wrestler , :class=>"btn" %><%= link_to 'Edit', edit_wrestler_path(wrestler), :class=>"btn" %><%= link_to 'Destroy', wrestler, method: :delete, data: { confirm: 'Are you sure?' }, :class=>"btn btn-danger" %>