fix deleting from own page

This commit is contained in:
Ben Harris 2022-01-31 14:39:50 -05:00
parent 7e80d41b5e
commit 7d92091c27
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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