instance method refresh

Ruby on Rails 2.0.23

Since v2.0.23 Last seen in v2.0.23

Signature

refresh(...)

Creates a turbo-stream tag with an ‘[action=“refresh”`] attribute and a [request-id] attribute that defaults to Turbo.current_request_id:

turbo_stream.refresh
# => <turbo-stream action="refresh" request-id="ef083d55-7516-41b1-ad28-16f553399c6a"></turbo-stream>

turbo_stream.refresh request_id: "abc123"
# => <turbo-stream action="refresh" request-id="abc123"></turbo-stream>

Parameters

... req
Source
# File app/models/turbo/streams/tag_builder.rb, line 243
  def refresh(...)
    turbo_stream_refresh_tag(...)
  end

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