diff --git a/app/controllers/board_columns_controller.rb b/app/controllers/board_columns_controller.rb index 7c97228..0a059dc 100644 --- a/app/controllers/board_columns_controller.rb +++ b/app/controllers/board_columns_controller.rb @@ -40,6 +40,7 @@ def destroy respond_to do |format| format.html { redirect_to board_url(board), notice: "BoardColumn was successfully destroyed." } + format.turbo_stream { render turbo_stream: turbo_stream.remove(@board_column) } end end diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index fa46e92..f00ce38 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -43,6 +43,7 @@ def destroy respond_to do |format| format.html { redirect_to boards_url, notice: "Board was successfully destroyed." } + format.turbo_stream { render turbo_stream: turbo_stream.remove(@board) } end end diff --git a/app/controllers/cards_controller.rb b/app/controllers/cards_controller.rb index c3ecbec..f079373 100644 --- a/app/controllers/cards_controller.rb +++ b/app/controllers/cards_controller.rb @@ -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 diff --git a/app/views/board_columns/_board_column.html.erb b/app/views/board_columns/_board_column.html.erb index 38d4d57..9c3ba13 100644 --- a/app/views/board_columns/_board_column.html.erb +++ b/app/views/board_columns/_board_column.html.erb @@ -1,4 +1,4 @@ -