1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-12 08:18:44 +00:00

Auto creating of high school weights

This commit is contained in:
2015-04-27 14:58:22 -04:00
parent 19bd2ac8f8
commit e7bfad8df0
6 changed files with 47 additions and 13 deletions

View File

@@ -61,6 +61,14 @@ class TournamentsController < ApplicationController
end
end
def createHsWeights
if params[:tournament]
if user_signed_in?
@tournament.createHsWeights
end
redirect_to "/tournaments/#{@tournament.id}"
end
end
# DELETE /tournaments/1
# DELETE /tournaments/1.json
def destroy