Skip to content

Commit

Permalink
Fix deleting of boards with Turbo Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
maikhel committed Jul 18, 2024
1 parent f23f3a6 commit b2968fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/boards_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/views/boards/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="row w-100">
<% @boards.each do |board| %>
<div class="col-3 my-3">
<div id= <%= dom_id(board) %> class="col-3 my-3">
<div class="card border border-primary-grey-200">
<%= turbo_frame_tag dom_id(board, :edit) do %>
<div class="card-header bg-primary-grey-200">
Expand Down

0 comments on commit b2968fc

Please sign in to comment.