1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-15 20:46:57 +00:00

Updated re-directs, added weights to tournament#show, and edited a few views

This commit is contained in:
Jacob Cody Wimer
2014-01-22 13:12:40 -05:00
parent 4a463132da
commit d4b97c83c3
13 changed files with 91 additions and 20 deletions

View File

@@ -11,6 +11,7 @@ class TournamentsController < ApplicationController
# GET /tournaments/1.json
def show
@schools = @tournament.schools
@weights = @tournament.weights
end
# GET /tournaments/new
@@ -26,7 +27,6 @@ class TournamentsController < ApplicationController
# POST /tournaments.json
def create
@tournament = Tournament.new(tournament_params)
respond_to do |format|
if @tournament.save
format.html { redirect_to @tournament, notice: 'Tournament was successfully created.' }