From 5c345528e4fc8b22cac19e7e7f09c53c5396dcaf Mon Sep 17 00:00:00 2001 From: Cinder Date: Sun, 8 Dec 2024 19:09:32 -0800 Subject: [PATCH] [Blips] Fix an error when a blip is deleted (#820) --- app/controllers/blips_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/blips_controller.rb b/app/controllers/blips_controller.rb index 9dfedb1aa..8288196ea 100644 --- a/app/controllers/blips_controller.rb +++ b/app/controllers/blips_controller.rb @@ -52,10 +52,10 @@ class BlipsController < ApplicationController def destroy @blip = Blip.find(params[:id]) @blip.destroy - flash[:notice] = 'Blip deleted' + flash[:notice] = "Blip deleted" respond_with(@blip) do |format| format.html do - redirect_back(fallback_location: blip_path(id: @blip.response_to)) + respond_with(@blip) end end end