[Blips] Fix an error when a blip is deleted (#820)

This commit is contained in:
Cinder 2024-12-08 19:09:32 -08:00 committed by GitHub
parent 18a382cf64
commit 5c345528e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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