about summary refs log tree commit diff
path: root/app/controllers/players_controller.rb
diff options
context:
space:
mode:
authorBen Harris <ben@tilde.team>2022-01-31 14:39:50 -0500
committerBen Harris <ben@tilde.team>2022-01-31 14:39:50 -0500
commit7d92091c278428de7b9bacd76d95a460200b8638 (patch)
treec1768a1749c4f3edfea6230c549a0e696042e8e2 /app/controllers/players_controller.rb
parent7e80d41b5e6f03a747199598316edc4fdc1892d1 (diff)
fix deleting from own page
Diffstat (limited to 'app/controllers/players_controller.rb')
-rw-r--r--app/controllers/players_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/players_controller.rb b/app/controllers/players_controller.rb
index 4e1195d..528c79f 100644
--- a/app/controllers/players_controller.rb
+++ b/app/controllers/players_controller.rb
@@ -49,7 +49,7 @@ class PlayersController < ApplicationController
     @player.destroy
 
     respond_to do |format|
-      format.html { redirect_to players_url, notice: 'Player was successfully removed.' }
+      format.html { redirect_to players_url, status: :see_other, notice: 'Player was successfully removed.' }
       format.json { head :no_content }
     end
   end