From 46b8888245b7551f5062984bf948d0f327cf362a Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 30 Jan 2019 20:16:23 +0000 Subject: [PATCH] Need to delete the return_path when on schools show otherwise you get redirected to another school you browsed --- app/controllers/schools_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/schools_controller.rb b/app/controllers/schools_controller.rb index 7740d5e..0d25823 100644 --- a/app/controllers/schools_controller.rb +++ b/app/controllers/schools_controller.rb @@ -11,6 +11,7 @@ class SchoolsController < ApplicationController # GET /schools/1 # GET /schools/1.json def show + session.delete(:return_path) @wrestlers = @school.wrestlers.includes(:deductedPoints,:matches,:weight) @tournament = @school.tournament end