Skip to Content Skip to Search

Action View Tag Builder ↑

Returns an HTML tag.

Builds HTML5 compliant tags with a tag proxy. Every tag can be built with:

tag.<tag name>(optional content, options)

where tag name can be e.g. br, div, section, article, or any tag really. To render an HTML custom element, replace the - in the tag’s name with _. For example:

tag.turbo_frame id: "a-turbo-frame"

# => <turbo-frame id="a-turbo-frame"></turbo-frame>

Passing content ↑

Tags can pass content to embed within it:

tag.h1 'All titles fit to print' # => <h1>All titles fit to print</h1>

tag.div tag.p('Hello world!')  # => <div><p>Hello world!</p></div>

Content can also be captured with a block, which is useful in templates:

<%= tag.p do %>
  The next great American novel starts here.
<% end %>
# => <p>The next great American novel starts here.</p>

Options ↑

Use symbol keyed options to add attributes to the generated tag.

tag.section class: %w( kitties puppies )
# => <section class="kitties puppies"></section>

tag.section id: dom_id(@post)
# => <section id="<generated dom id>"></section>

Pass true for any attributes that can render with no values, like disabled and readonly.

tag.input type: 'text', disabled: true
# => <input type="text" disabled="disabled">

HTML5 data-* and aria-* attributes can be set with a single data or aria key pointing to a hash of sub-attributes.

To play nicely with JavaScript conventions, sub-attributes are dasherized.

tag.article data: { user_id: 123 }
# => <article data-user-id="123"></article>

Thus data-user-id can be accessed as dataset.userId.

Data attribute values are encoded to JSON, with the exception of strings, symbols, and BigDecimals. This may come in handy when using jQuery’s HTML5-aware .data() from 1.4.3.

tag.div data: { city_state: %w( Chicago IL ) }
# => <div data-city-state="[&quot;Chicago&quot;,&quot;IL&quot;]"></div>

In addition to :data and :aria, nest sub-attribute hashes for any keys:

tag.button "POST to /clicked", hx: { post: "/clicked", swap: :outerHTML }

# => <button hx-post="/clicked" hx-swap="outerHTML">POST to /clicked</button>

The generated tag names and attributes are escaped by default. This can be disabled using escape.

tag.img src: 'open & shut.png'
# => <img src="open &amp; shut.png">

tag.img src: 'open & shut.png', escape: false
# => <img src="open & shut.png">

The tag builder respects HTML5 void elements if no content is passed, and omits closing tags for those elements.

# A standard element:
tag.div # => <div></div>

# A void element:
tag.br  # => <br>

Note that when using the block form options should be wrapped in parenthesis.

<%= tag.a(href: "/about", class: "font-bold") do %>
  About the author
<% end %>
# => <a href="/about" class="font-bold">About the author</a>

Building HTML attributes ↑

Transforms a Hash into HTML attributes, ready to be interpolated into ERB. Includes or omits boolean attributes based on their truthiness. Transforms keys nested within aria: or data: objects into aria- and data- prefixed attributes:

<input <%= tag.attributes(type: :text, aria: { label: "Search" }) %>>
# => <input type="text" aria-label="Search">

<button <%= tag.attributes id: "call-to-action", disabled: false, aria: { expanded: false } %> class="primary">Get Started!</button>
# => <button id="call-to-action" aria-expanded="false" class="primary">Get Started!</button>
Methods
A
B
C
D
E
F
H
I
K
L
M
N
O
P
Q
R
S
T
U
V
W

Instance Public methods

a(content = nil, escape: true, **options, &block)

Renders an a HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 443
        

abbr(content = nil, escape: true, **options, &block)

Renders a abbr HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 452
        

address(content = nil, escape: true, **options, &block)

Renders an address HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 461
        

animate(content = nil, escape: true, **options, &block)

Renders a self-closing animate HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 317
        

animate_motion(content = nil, escape: true, **options, &block)

Renders a self-closing animateMotion HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 326
        

animate_transform(content = nil, escape: true, **options, &block)

Renders a self-closing animateTransform HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 335
        

area(content = nil, **options, &block)

Renders a void area HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 191
        

article(content = nil, escape: true, **options, &block)

Renders an article HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 470
        

aside(content = nil, escape: true, **options, &block)

Renders an aside HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 479
        

attributes(attributes)

Transforms a Hash into HTML Attributes, ready to be interpolated into ERB.

Includes or omits boolean attributes based on their truthiness. Transforms keys nested within aria: or data: objects into aria- and data- prefixed attributes:

<input <%= tag.attributes(type: :text, aria: { label: "Search" }) %> >
# => <input type="text" aria-label="Search">

<button <%= tag.attributes id: "call_to_action", disabled: false, aria: { expanded: false } %>>Get Started!</button>
# => <button id="call_to_action" aria-expanded="false">Get Started!</button>
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1527
def attributes(attributes)
  tag_options(attributes.to_h).to_s.strip.html_safe
end

audio(content = nil, escape: true, **options, &block)

Renders an audio HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 488
        

b(content = nil, escape: true, **options, &block)

Renders a b HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 497
        

base(content = nil, escape: true, **options, &block)

Renders a void base HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 200
        

bdi(content = nil, escape: true, **options, &block)

Renders a bdi HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 506
        

bdo(content = nil, escape: true, **options, &block)

Renders a bdo HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 515
        

blockquote(content = nil, escape: true, **options, &block)

Renders a blockquote HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 524
        

body(content = nil, escape: true, **options, &block)

Renders a body HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 533
        

br(content = nil, escape: true, **options, &block)

Renders a void br HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 209
        

button(content = nil, escape: true, **options, &block)

Renders a button HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 542
        

canvas(content = nil, escape: true, **options, &block)

Renders a canvas HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 551
        

caption(content = nil, escape: true, **options, &block)

Renders a caption HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 560
        

circle(content = nil, escape: true, **options, &block)

Renders a self-closing circle HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 344
        

cite(content = nil, escape: true, **options, &block)

Renders a cite HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 569
        

code(content = nil, escape: true, **options, &block)

Renders a code HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 578
        

col(content = nil, escape: true, **options, &block)

Renders a void col HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 218
        

colgroup(content = nil, escape: true, **options, &block)

Renders a colgroup HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 587
        

data(content = nil, escape: true, **options, &block)

Renders a data HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 596
        

datalist(content = nil, escape: true, **options, &block)

Renders a datalist HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 605
        

dd(content = nil, escape: true, **options, &block)

Renders a dd HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 614
        

del(content = nil, escape: true, **options, &block)

Renders a del HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 623
        

details(content = nil, escape: true, **options, &block)

Renders a details HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 632
        

dfn(content = nil, escape: true, **options, &block)

Renders a dfn HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 641
        

dialog(content = nil, escape: true, **options, &block)

Renders a dialog HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 650
        

div(content = nil, escape: true, **options, &block)

Renders a div HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 659
        

dl(content = nil, escape: true, **options, &block)

Renders a dl HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 668
        

dt(content = nil, escape: true, **options, &block)

Renders a dt HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 677
        

ellipse(content = nil, escape: true, **options, &block)

Renders a self-closing ellipse HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 353
        

em(content = nil, escape: true, **options, &block)

Renders an em HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 686
        

embed(content = nil, escape: true, **options, &block)

Renders a void embed HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 227
        

fieldset(content = nil, escape: true, **options, &block)

Renders a fieldset HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 695
        

figcaption(content = nil, escape: true, **options, &block)

Renders a figcaption HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 704
        

figure(content = nil, escape: true, **options, &block)

Renders a figure HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 713
        

Renders a footer HTML element

Refer to the class documentation for more details.

form(content = nil, escape: true, **options, &block)

Renders a form HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 731
        

h1(content = nil, escape: true, **options, &block)

Renders an h1 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 740
        

h2(content = nil, escape: true, **options, &block)

Renders an h2 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 749
        

h3(content = nil, escape: true, **options, &block)

Renders an h3 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 758
        

h4(content = nil, escape: true, **options, &block)

Renders an h4 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 767
        

h5(content = nil, escape: true, **options, &block)

Renders an h5 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 776
        

h6(content = nil, escape: true, **options, &block)

Renders an h6 HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 785
        

head(content = nil, escape: true, **options, &block)

Renders a head HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 794
        

header(content = nil, escape: true, **options, &block)

Renders a header HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 803
        

hgroup(content = nil, escape: true, **options, &block)

Renders an hgroup HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 812
        

hr(content = nil, escape: true, **options, &block)

Renders a void hr HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 236
        

html(content = nil, escape: true, **options, &block)

Renders an html HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 821
        

i(content = nil, escape: true, **options, &block)

Renders an i HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 830
        

iframe(content = nil, escape: true, **options, &block)

Renders an iframe HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 839
        

img(content = nil, escape: true, **options, &block)

Renders a void img HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 245
        

input(content = nil, escape: true, **options, &block)

Renders a void input HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 254
        

ins(content = nil, escape: true, **options, &block)

Renders an ins HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 848
        

kbd(content = nil, escape: true, **options, &block)

Renders a kbd HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 857
        

keygen(content = nil, escape: true, **options, &block)

Renders a void keygen HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 263
        

label(content = nil, escape: true, **options, &block)

Renders a label HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 866
        

legend(content = nil, escape: true, **options, &block)

Renders a legend HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 875
        

li(content = nil, escape: true, **options, &block)

Renders an li HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 884
        

line(content = nil, escape: true, **options, &block)

Renders a self-closing line HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 362
        

Renders a void link HTML element

Refer to the class documentation for more details.

main(content = nil, escape: true, **options, &block)

Renders a main HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 893
        

map(content = nil, escape: true, **options, &block)

Renders a map HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 902
        

mark(content = nil, escape: true, **options, &block)

Renders a mark HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 911
        

menu(content = nil, escape: true, **options, &block)

Renders a menu HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 920
        

meta(content = nil, escape: true, **options, &block)

Renders a void meta HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 281
        

meter(content = nil, escape: true, **options, &block)

Renders a meter HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 929
        

nav(content = nil, escape: true, **options, &block)

Renders a nav HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 938
        

noscript(content = nil, escape: true, **options, &block)

Renders a noscript HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 947
        

object(content = nil, escape: true, **options, &block)

Renders an object HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 956
        

ol(content = nil, escape: true, **options, &block)

Renders an ol HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 965
        

optgroup(content = nil, escape: true, **options, &block)

Renders an optgroup HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 974
        

option(content = nil, escape: true, **options, &block)

Renders an option HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 983
        

output(content = nil, escape: true, **options, &block)

Renders an output HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 992
        

p(content = nil, escape: true, **options, &block)

Renders a p HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1001
        

path(content = nil, escape: true, **options, &block)

Renders a self-closing path HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 371
        

picture(content = nil, escape: true, **options, &block)

Renders a picture HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1010
        

polygon(content = nil, escape: true, **options, &block)

Renders a self-closing polygon HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 380
        

polyline(content = nil, escape: true, **options, &block)

Renders a self-closing polyline HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 389
        

portal(content = nil, escape: true, **options, &block)

Renders a portal HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1019
        

pre(content = nil, escape: true, **options, &block)

Renders a pre HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1028
        

progress(content = nil, escape: true, **options, &block)

Renders a progress HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1037
        

q(content = nil, escape: true, **options, &block)

Renders a q HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1046
        

rect(content = nil, escape: true, **options, &block)

Renders a self-closing rect HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 398
        

rp(content = nil, escape: true, **options, &block)

Renders an rp HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1055
        

rt(content = nil, escape: true, **options, &block)

Renders an rt HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1064
        

ruby(content = nil, escape: true, **options, &block)

Renders a ruby HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1073
        

s(content = nil, escape: true, **options, &block)

Renders an s HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1082
        

samp(content = nil, escape: true, **options, &block)

Renders a samp HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1091
        

script(content = nil, escape: true, **options, &block)

Renders a script HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1100
        

Renders a search HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1109
        

section(content = nil, escape: true, **options, &block)

Renders a section HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1118
        

select(content = nil, escape: true, **options, &block)

Renders a select HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1127
        

set(content = nil, escape: true, **options, &block)

Renders a self-closing set HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 407
        

slot(content = nil, escape: true, **options, &block)

Renders a slot HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1136
        

small(content = nil, escape: true, **options, &block)

Renders a small HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1145
        

source(content = nil, escape: true, **options, &block)

Renders a void source HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 290
        

span(content = nil, escape: true, **options, &block)

Renders a span HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1154
        

stop(content = nil, escape: true, **options, &block)

Renders a self-closing stop HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 416
        

strong(content = nil, escape: true, **options, &block)

Renders a strong HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1163
        

style(content = nil, escape: true, **options, &block)

Renders a style HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1172
        

sub(content = nil, escape: true, **options, &block)

Renders a sub HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1181
        

summary(content = nil, escape: true, **options, &block)

Renders a summary HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1190
        

sup(content = nil, escape: true, **options, &block)

Renders a sup HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1199
        

table(content = nil, escape: true, **options, &block)

Renders a table HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1208
        

tbody(content = nil, escape: true, **options, &block)

Renders a tbody HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1217
        

td(content = nil, escape: true, **options, &block)

Renders a td HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1226
        

template(content = nil, escape: true, **options, &block)

Renders a template HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1235
        

textarea(content = nil, escape: true, **options, &block)

Renders a textarea HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1244
        

tfoot(content = nil, escape: true, **options, &block)

Renders a tfoot HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1253
        

th(content = nil, escape: true, **options, &block)

Renders a th HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1262
        

thead(content = nil, escape: true, **options, &block)

Renders a thead HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1271
        

time(content = nil, escape: true, **options, &block)

Renders a time HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1280
        

title(content = nil, escape: true, **options, &block)

Renders a title HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1289
        

tr(content = nil, escape: true, **options, &block)

Renders a tr HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1298
        

track(content = nil, escape: true, **options, &block)

Renders a void track HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 299
        

u(content = nil, escape: true, **options, &block)

Renders a u HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1307
        

ul(content = nil, escape: true, **options, &block)

Renders a ul HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1316
        

use(content = nil, escape: true, **options, &block)

Renders a self-closing use HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 425
        

var(content = nil, escape: true, **options, &block)

Renders a var HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 1325
        

view(content = nil, escape: true, **options, &block)

Renders a self-closing view HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 434
        

wbr(content = nil, escape: true, **options, &block)

Renders a void wbr HTML element

Refer to the class documentation for more details.

# File actionview/lib/action_view/helpers/tag_helper.rb, line 308