instance method convert_to_turbo_stream_dom_id

Ruby on Rails 1.5.0

Since v1.3.3 Last seen in v2.0.23 Private

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

Signature

convert_to_turbo_stream_dom_id(target, include_selector: false)

No documentation comment.

Parameters

target req
include_selector key = false
Source
# File app/helpers/turbo/streams/action_helper.rb, line 39
    def convert_to_turbo_stream_dom_id(target, include_selector: false)
      if Array(target).any? { |value| value.respond_to?(:to_key) }
        "#{"#" if include_selector}#{ActionView::RecordIdentifier.dom_id(*target)}"
      else
        target
      end
    end

Defined in app/helpers/turbo/streams/action_helper.rb line 39 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Turbo::Streams::ActionHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close