diff options
author | Ben Harris <ben@tilde.team> | 2022-01-31 14:39:50 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2022-01-31 14:39:50 -0500 |
commit | 7d92091c278428de7b9bacd76d95a460200b8638 (patch) | |
tree | c1768a1749c4f3edfea6230c549a0e696042e8e2 /app/controllers/machines_controller.rb | |
parent | 7e80d41b5e6f03a747199598316edc4fdc1892d1 (diff) |
fix deleting from own page
Diffstat (limited to 'app/controllers/machines_controller.rb')
-rw-r--r-- | app/controllers/machines_controller.rb | 2 |
1 files changed, 1 insertions, 1 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 |