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

Need to delete the return_path when on schools show otherwise you get redirected to another school you browsed

This commit is contained in:
2019-01-30 20:16:23 +00:00
parent 972c5af093
commit 46b8888245

View File

@@ -11,6 +11,7 @@ class SchoolsController < ApplicationController
# GET /schools/1 # GET /schools/1
# GET /schools/1.json # GET /schools/1.json
def show def show
session.delete(:return_path)
@wrestlers = @school.wrestlers.includes(:deductedPoints,:matches,:weight) @wrestlers = @school.wrestlers.includes(:deductedPoints,:matches,:weight)
@tournament = @school.tournament @tournament = @school.tournament
end end