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

Added quick create high school girls weight classes

This commit is contained in:
2021-02-18 20:27:44 +00:00
parent 5677f4e944
commit 0aea26967a
5 changed files with 28 additions and 11 deletions

View File

@@ -165,7 +165,7 @@ class TournamentsController < ApplicationController
end
def create_custom_weights
@custom = params[:customValue].to_s
@custom = params[:customValue].split(",")
@tournament.create_pre_defined_weights(@custom)
redirect_to "/tournaments/#{@tournament.id}"
end