mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-04 22:03:49 +00:00
Blocking buttons with Devise Authentication and cleaning up views
This commit is contained in:
@@ -17,7 +17,8 @@ class SchoolsController < ApplicationController
|
||||
def new
|
||||
@school = School.new
|
||||
if params[:tournament]
|
||||
@tournament = params[:tournament]
|
||||
@tournament_field = params[:tournament]
|
||||
@tournament = Tournament.find(params[:tournament])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ class WrestlersController < ApplicationController
|
||||
def new
|
||||
@wrestler = Wrestler.new
|
||||
if params[:school]
|
||||
@school = params[:school]
|
||||
@school_field = params[:school]
|
||||
@school = School.find(params[:school])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user