module DriveHelper

Ruby on Rails 2.0.23

Since v1.3.3 Last seen in v2.0.23

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

Helpers to configure Turbo Drive via meta directives. They come in two variants:

The recommended option is to include +yield :head+ in the +<head>+ section of the layout. Then you can use the helpers in any view.

Example

# app/views/application.html.erb
<html><head><%= yield :head %></head><body><%= yield %></html>

# app/views/trays/index.html.erb
<% turbo_exempts_page_from_cache %>
<p>Page that shouldn't be cached by Turbo</p>

Alternatively, you can use the _tag variant of the helpers to only get the HTML for the meta directive.

Methods (defined here)

Type at least 2 characters to search.

↑↓ navigate · open · esc close