instance method action

Ruby on Rails 1.5.0

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

action(name, target, content = nil, allow_inferred_rendering: true, **rendering, &block)

Send an action of the type name to target. Options described in the concrete methods.

Parameters

name req
target req
content opt = nil
allow_inferred_rendering key = true
rendering keyrest
block block
Source
# File app/models/turbo/streams/tag_builder.rb, line 214
  def action(name, target, content = nil, allow_inferred_rendering: true, **rendering, &block)
    template = render_template(target, content, allow_inferred_rendering: allow_inferred_rendering, **rendering, &block)

    turbo_stream_action_tag name, target: target, template: template
  end

Defined in app/models/turbo/streams/tag_builder.rb line 214 · 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