instance method remove_all

Ruby on Rails 2.0.23

Since v1.3.3 Last seen in v2.0.23

Available in: v1.3.3 v1.4.0 v1.5.0 v2.0.23

Signature

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

targets req
Source
# File app/models/turbo/streams/tag_builder.rb, line 67
  def remove_all(targets)
    action_all :remove, targets, allow_inferred_rendering: false
  end

Defined in app/models/turbo/streams/tag_builder.rb line 67 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Turbo::Streams::TagBuilder

Type at least 2 characters to search.

↑↓ navigate · open · esc close