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:
@@ -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.' }
|
||||
|
||||
Reference in New Issue
Block a user