turbo_frame_tag has built-in dom_id expansion

This commit is contained in:
David Heinemeier Hansson
2025-11-08 16:42:41 +01:00
parent 1bab9e95aa
commit fef9c2dab6
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
<% end %>
<section class="cards cards--grid">
<%= turbo_frame_tag dom_id(@column, :cards) do %>
<%= turbo_frame_tag @column, :cards do %>
<% if @page.used? %>
<%= with_automatic_pagination dom_id(@column, :cards), @page do %>
<%= render "boards/columns/list", cards: @page.records, draggable: true %>
+1 -1
View File
@@ -1,4 +1,4 @@
<%= turbo_frame_tag dom_id(@card, :columns) do %>
<%= turbo_frame_tag @card, :columns do %>
<div class="card__stages" role="radiogroup">
<legend class="for-screen-reader">Choose a column for this card</legend>
+1 -1
View File
@@ -1,3 +1,3 @@
<%= turbo_frame_tag dom_id(@card, :pin) do %>
<%= turbo_frame_tag @card, :pin do %>
<%= render "cards/pins/pin_button", card: @card %>
<% end %>
+1 -1
View File
@@ -1 +1 @@
<%= turbo_frame_tag dom_id(card, :columns), src: edit_card_column_path(card), target: "_top", refresh: "morph" %>
<%= turbo_frame_tag card, :columns, src: edit_card_column_path(card), target: "_top", refresh: "morph" %>
+1 -1
View File
@@ -1,3 +1,3 @@
<%= turbo_frame_tag dom_id(@card, :watch) do %>
<%= turbo_frame_tag @card, :watch do %>
<%= render "cards/watches/watch_button", card: @card %>
<% end %>
+1 -1
View File
@@ -1,3 +1,3 @@
<%= turbo_frame_tag dom_id(Current.identity, :account_menu), src: session_menu_url(script_name: nil, menu_section: true, without: ApplicationRecord.current_tenant) do %>
<%= turbo_frame_tag Current.identity, :account_menu, src: session_menu_url(script_name: nil, menu_section: true, without: ApplicationRecord.current_tenant) do %>
Loading...
<% end %>
@@ -1,4 +1,4 @@
<%= turbo_frame_tag dom_id(board, :involvement) do %>
<%= turbo_frame_tag board, :involvement do %>
<div class="flex align-center gap pad-inline">
<h2 class="txt-medium overflow-ellipsis">
<%= board.name %>
@@ -1,4 +1,4 @@
<%= turbo_frame_tag dom_id(@column, :cards) do %>
<%= turbo_frame_tag @column, :cards do %>
<% if @page.used? %>
<%= with_automatic_pagination dom_id(@column, :cards), @page do %>
<%= render "public/boards/columns/list", cards: @page.records %>
@@ -1,4 +1,4 @@
<%= turbo_frame_tag dom_id(Current.identity, :account_menu) do %>
<%= turbo_frame_tag Current.identity, :account_menu do %>
<% cache [ Current.identity, @memberships ] do %>
<%= collapsible_nav_section "Accounts" do %>
<% @memberships.each do |membership| %>