instance method
remove
Ruby on Rails 1.5.0
Since v1.3.3 Last seen in v2.0.23Signature
remove(target)
Removes the target from the dom. The target can either be a dom id 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 "clearance_5" %> <%= turbo_stream.remove clearance %>
Parameters
-
targetreq
Source
# File app/models/turbo/streams/tag_builder.rb, line 39
def remove(target)
action :remove, target, allow_inferred_rendering: false
end
Defined in app/models/turbo/streams/tag_builder.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::TagBuilder