Method: Turbo::Streams::TagBuilder#append_all

Defined in:
app/models/turbo/streams/tag_builder.rb

#append_all(targets, content = nil, **rendering, &block) ⇒ Object

Append to the targets in the dom identified with targets either the content passed in or a rendering result determined by the rendering keyword arguments, the content in the block, or the rendering of the content as a record. Examples:

<%= turbo_stream.append_all ".clearances", "<div class='clearance_item'>Append this to .clearance_group</div>" %>
<%= turbo_stream.append_all ".clearances", clearance %>
<%= turbo_stream.append_all ".clearances", partial: "clearances/new_clearance", locals: { clearance: clearance } %>
<%= turbo_stream.append_all ".clearances" do %>
  <div id='clearance_item'>Append this to .clearances</div>
<% end %>


203
204
205
# File 'app/models/turbo/streams/tag_builder.rb', line 203

def append_all(targets, content = nil, **rendering, &block)
  action_all :append, targets, content, **rendering, &block
end