about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/machines_controller.rb2
-rw-r--r--app/controllers/players_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/machines_controller.rb b/app/controllers/machines_controller.rb
index 9d47832..db60d7e 100644
--- a/app/controllers/machines_controller.rb
+++ b/app/controllers/machines_controller.rb
@@ -52,7 +52,7 @@ class MachinesController < ApplicationController
     @machine.destroy
 
     respond_to do |format|
-      format.html { redirect_to machines_url, notice: 'Machine was successfully removed.' }
+      format.html { redirect_to machines_url, status: :see_other, notice: 'Machine was successfully removed.' }
       format.json { head :no_content }
     end
   end
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