Skip to content

Commit

Permalink
Fix deleting of cards with Turbo Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
maikhel committed Jul 17, 2024
1 parent b90cc6b commit 637f23d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/cards_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def destroy

respond_to do |format|
format.html { redirect_to board_url(board), notice: "Card was successfully destroyed." }
format.turbo_stream
end
end

Expand Down
1 change: 1 addition & 0 deletions app/views/cards/destroy.turbo_stream.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%= turbo_stream.remove dom_id(@card) %>

0 comments on commit 637f23d

Please sign in to comment.