instance method
update_all
Ruby on Rails 1.3.3
Since v1.3.3 Last seen in v2.0.23Signature
update_all(targets, content = nil, **rendering, &block)
Update the targets in the dom with 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 targets as a record. Examples:
<%= turbo_stream.update_all "clearance_item", "Update the content of the dom target identified by the class clearance_item" %>
<%= turbo_stream.update_all clearance %>
<%= turbo_stream.update_all clearance, partial: "clearances/new_clearance", locals: { title: "Hello" } %>
<%= turbo_stream.update_all "clearance_item" do %>
Update the content of the dom target identified by the class clearance_item
<% end %>
Parameters
-
targetsreq -
contentopt = nil -
renderingkeyrest -
blockblock
Source
# File app/models/turbo/streams/tag_builder.rb, line 153
def update_all(targets, content = nil, **rendering, &block)
action_all :update, targets, content, **rendering, &block
end
Defined in app/models/turbo/streams/tag_builder.rb line 153
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::TagBuilder