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 413
        

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 422
        

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 431
        

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 287
        

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 296
        

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 305
        

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 161
        

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 440
        

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 449
        

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 1495
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 458
        

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 467
        

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 170
        

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 476
        

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 485
        

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 494
        

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 503
        

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 179
        

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 512
        

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 521
        

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 530
        

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 314
        

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 539
        

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 548
        

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 188
        

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 557
        

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 566
        

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 575
        

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 584
        

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 593
        

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 602
        

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 611
        

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 620
        

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 629
        

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 638
        

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 647
        

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 323
        

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 656
        

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 197
        

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 665
        

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 674
        

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 683
        

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 701
        

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 710
        

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 719
        

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 728
        

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 737
        

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 746
        

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 755
        

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 764
        

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 773
        

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 782
        

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 206
        

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 791
        

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 800
        

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 809
        

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 215
        

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 224
        

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 818
        

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 827
        

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 233
        

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 836
        

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 845
        

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 854
        

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 332
        

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 863
        

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 872
        

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 881
        

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 890
        

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 251
        

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 899
        

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 908
        

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 917
        

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 926
        

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 935
        

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 944
        

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 953
        

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 962
        

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 971
        

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 341
        

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 980
        

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 350
        

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 359
        

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 989
        

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 998
        

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 1007
        

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 1016
        

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 368
        

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 1025
        

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 1034
        

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 1043
        

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 1052
        

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 1061
        

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 1070
        

Renders a search HTML element

Refer to the class documentation for more details.

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

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 1088
        

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 1097
        

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 377
        

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 1106
        

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 1115
        

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 260
        

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 1124
        

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 386
        

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 1133
        

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 1142
        

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 1151
        

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 1160
        

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 1169
        

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 1178
        

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 1187
        

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 1196
        

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 1205
        

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 1214
        

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 1223
        

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 1232
        

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 1241
        

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 1250
        

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 1259
        

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 1268
        

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 269
        

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 1277
        

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 1286
        

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 395
        

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 1295
        

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 404
        

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 278