mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Can edit wrestler school
This commit is contained in:
@@ -27,10 +27,8 @@ class WrestlersController < ApplicationController
|
||||
|
||||
# GET /wrestlers/1/edit
|
||||
def edit
|
||||
@school = @wrestler.school
|
||||
@tournament = @wrestler.tournament
|
||||
@weight = @wrestler.weight
|
||||
@weights = @tournament.weights.sort_by{|w| w.max}
|
||||
@weights = @school.tournament.weights.sort_by{|w| w.max}
|
||||
end
|
||||
|
||||
# POST /wrestlers
|
||||
|
||||
Reference in New Issue
Block a user