1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Modified wrestler show to show matches and team points scored

This commit is contained in:
2015-11-17 13:53:00 +00:00
parent bb8564b44c
commit 633ae2eb01
2 changed files with 11 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ class WrestlersController < ApplicationController
private
# Use callbacks to share common setup or constraints between actions.
def set_wrestler
@wrestler = Wrestler.where(:id => params[:id]).includes(:tournament,:school,:weight).first
@wrestler = Wrestler.where(:id => params[:id]).includes(:tournament,:school,:weight,:matches).first
end
# Never trust parameters from the scary internet, only allow the white list through.