Method: Turbo::Streams::TagBuilder#remove
- Defined in:
- app/models/turbo/streams/tag_builder.rb
#remove(target) ⇒ Object
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 %>
57 58 59 |
# File 'app/models/turbo/streams/tag_builder.rb', line 57 def remove(target) action :remove, target, allow_inferred_rendering: false end |