instance method
remove_all
Ruby on Rails 1.4.0
Since v1.3.3 Last seen in v2.0.23Signature
remove_all(targets)
Removes the targets from the dom. The targets can either be a CSS selector string or an object that responds to to_key, which is then called and passed through ActionView::RecordIdentifier.dom_id (all Active Records do). Examples:
<%= turbo_stream.remove_all ".clearance_item" %> <%= turbo_stream.remove_all clearance %>
Parameters
-
targetsreq
Source
# File app/models/turbo/streams/tag_builder.rb, line 49
def remove_all(targets)
action_all :remove, targets, allow_inferred_rendering: false
end
Defined in app/models/turbo/streams/tag_builder.rb line 49
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::TagBuilder