fix deleting from own page
This commit is contained in:
parent
7e80d41b5e
commit
7d92091c27
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue