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