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="["Chicago","IL"]"></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 & 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>
- 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) Link
Renders an a HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 444
abbr(content = nil, escape: true, **options, &block) Link
Renders a abbr HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 453
address(content = nil, escape: true, **options, &block) Link
Renders an address HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 462
animate(content = nil, escape: true, **options, &block) Link
Renders a self-closing animate HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 318
animate_motion(content = nil, escape: true, **options, &block) Link
Renders a self-closing animateMotion HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 327
animate_transform(content = nil, escape: true, **options, &block) Link
Renders a self-closing animateTransform HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 336
area(content = nil, **options, &block) Link
Renders a void area HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 192
article(content = nil, escape: true, **options, &block) Link
Renders an article HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 471
aside(content = nil, escape: true, **options, &block) Link
Renders an aside HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 480
attributes(attributes) Link
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>
audio(content = nil, escape: true, **options, &block) Link
Renders an audio HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 489
b(content = nil, escape: true, **options, &block) Link
Renders a b HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 498
base(content = nil, escape: true, **options, &block) Link
Renders a void base HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 201
bdi(content = nil, escape: true, **options, &block) Link
Renders a bdi HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 507
bdo(content = nil, escape: true, **options, &block) Link
Renders a bdo HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 516
blockquote(content = nil, escape: true, **options, &block) Link
Renders a blockquote HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 525
body(content = nil, escape: true, **options, &block) Link
Renders a body HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 534
br(content = nil, escape: true, **options, &block) Link
Renders a void br HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 210
button(content = nil, escape: true, **options, &block) Link
Renders a button HTML element
Refer to the class documentation for more details.
Source: on GitHub
canvas(content = nil, escape: true, **options, &block) Link
Renders a canvas HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 552
caption(content = nil, escape: true, **options, &block) Link
Renders a caption HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 561
circle(content = nil, escape: true, **options, &block) Link
Renders a self-closing circle HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 345
cite(content = nil, escape: true, **options, &block) Link
Renders a cite HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 570
code(content = nil, escape: true, **options, &block) Link
Renders a code HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 579
col(content = nil, escape: true, **options, &block) Link
Renders a void col HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 219
colgroup(content = nil, escape: true, **options, &block) Link
Renders a colgroup HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 588
data(content = nil, escape: true, **options, &block) Link
Renders a data HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 597
datalist(content = nil, escape: true, **options, &block) Link
Renders a datalist HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 606
dd(content = nil, escape: true, **options, &block) Link
Renders a dd HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 615
del(content = nil, escape: true, **options, &block) Link
Renders a del HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 624
details(content = nil, escape: true, **options, &block) Link
Renders a details HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 633
dfn(content = nil, escape: true, **options, &block) Link
Renders a dfn HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 642
dialog(content = nil, escape: true, **options, &block) Link
Renders a dialog HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 651
div(content = nil, escape: true, **options, &block) Link
Renders a div HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 660
dl(content = nil, escape: true, **options, &block) Link
Renders a dl HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 669
dt(content = nil, escape: true, **options, &block) Link
Renders a dt HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 678
ellipse(content = nil, escape: true, **options, &block) Link
Renders a self-closing ellipse HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 354
em(content = nil, escape: true, **options, &block) Link
Renders an em HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 687
embed(content = nil, escape: true, **options, &block) Link
Renders a void embed HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 228
fieldset(content = nil, escape: true, **options, &block) Link
Renders a fieldset HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 696
figcaption(content = nil, escape: true, **options, &block) Link
Renders a figcaption HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 705
figure(content = nil, escape: true, **options, &block) Link
Renders a figure HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 714
footer(content = nil, escape: true, **options, &block) Link
Renders a footer HTML element
Refer to the class documentation for more details.
Source: on GitHub
form(content = nil, escape: true, **options, &block) Link
Renders a form HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 732
h1(content = nil, escape: true, **options, &block) Link
Renders an h1 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 741
h2(content = nil, escape: true, **options, &block) Link
Renders an h2 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 750
h3(content = nil, escape: true, **options, &block) Link
Renders an h3 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 759
h4(content = nil, escape: true, **options, &block) Link
Renders an h4 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 768
h5(content = nil, escape: true, **options, &block) Link
Renders an h5 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 777
h6(content = nil, escape: true, **options, &block) Link
Renders an h6 HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 786
head(content = nil, escape: true, **options, &block) Link
Renders a head HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 795
header(content = nil, escape: true, **options, &block) Link
Renders a header HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 804
hgroup(content = nil, escape: true, **options, &block) Link
Renders an hgroup HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 813
hr(content = nil, escape: true, **options, &block) Link
Renders a void hr HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 237
html(content = nil, escape: true, **options, &block) Link
Renders an html HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 822
i(content = nil, escape: true, **options, &block) Link
Renders an i HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 831
iframe(content = nil, escape: true, **options, &block) Link
Renders an iframe HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 840
img(content = nil, escape: true, **options, &block) Link
Renders a void img HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 246
input(content = nil, escape: true, **options, &block) Link
Renders a void input HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 255
ins(content = nil, escape: true, **options, &block) Link
Renders an ins HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 849
kbd(content = nil, escape: true, **options, &block) Link
Renders a kbd HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 858
keygen(content = nil, escape: true, **options, &block) Link
Renders a void keygen HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 264
label(content = nil, escape: true, **options, &block) Link
Renders a label HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 867
legend(content = nil, escape: true, **options, &block) Link
Renders a legend HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 876
li(content = nil, escape: true, **options, &block) Link
Renders an li HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 885
line(content = nil, escape: true, **options, &block) Link
Renders a self-closing line HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 363
link(content = nil, escape: true, **options, &block) Link
Renders a void link HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 273
main(content = nil, escape: true, **options, &block) Link
Renders a main HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 894
map(content = nil, escape: true, **options, &block) Link
Renders a map HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 903
mark(content = nil, escape: true, **options, &block) Link
Renders a mark HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 912
menu(content = nil, escape: true, **options, &block) Link
Renders a menu HTML element
Refer to the class documentation for more details.
Source: on GitHub
meta(content = nil, escape: true, **options, &block) Link
Renders a void meta HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 282
meter(content = nil, escape: true, **options, &block) Link
Renders a meter HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 930
nav(content = nil, escape: true, **options, &block) Link
Renders a nav HTML element
Refer to the class documentation for more details.
Source: on GitHub
noscript(content = nil, escape: true, **options, &block) Link
Renders a noscript HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 948
object(content = nil, escape: true, **options, &block) Link
Renders an object HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 957
ol(content = nil, escape: true, **options, &block) Link
Renders an ol HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 966
optgroup(content = nil, escape: true, **options, &block) Link
Renders an optgroup HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 975
option(content = nil, escape: true, **options, &block) Link
Renders an option HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 984
output(content = nil, escape: true, **options, &block) Link
Renders an output HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 993
p(content = nil, escape: true, **options, &block) Link
Renders a p HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1002
path(content = nil, escape: true, **options, &block) Link
Renders a self-closing path HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 372
picture(content = nil, escape: true, **options, &block) Link
Renders a picture HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1011
polygon(content = nil, escape: true, **options, &block) Link
Renders a self-closing polygon HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 381
polyline(content = nil, escape: true, **options, &block) Link
Renders a self-closing polyline HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 390
portal(content = nil, escape: true, **options, &block) Link
Renders a portal HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1020
pre(content = nil, escape: true, **options, &block) Link
Renders a pre HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1029
progress(content = nil, escape: true, **options, &block) Link
Renders a progress HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1038
q(content = nil, escape: true, **options, &block) Link
Renders a q HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1047
rect(content = nil, escape: true, **options, &block) Link
Renders a self-closing rect HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 399
rp(content = nil, escape: true, **options, &block) Link
Renders an rp HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1056
rt(content = nil, escape: true, **options, &block) Link
Renders an rt HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1065
ruby(content = nil, escape: true, **options, &block) Link
Renders a ruby HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1074
s(content = nil, escape: true, **options, &block) Link
Renders an s HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1083
samp(content = nil, escape: true, **options, &block) Link
Renders a samp HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1092
script(content = nil, escape: true, **options, &block) Link
Renders a script HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1101
search(content = nil, escape: true, **options, &block) Link
Renders a search HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1110
section(content = nil, escape: true, **options, &block) Link
Renders a section HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1119
select(content = nil, escape: true, **options, &block) Link
Renders a select HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1128
set(content = nil, escape: true, **options, &block) Link
Renders a self-closing set HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 408
slot(content = nil, escape: true, **options, &block) Link
Renders a slot HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1137
small(content = nil, escape: true, **options, &block) Link
Renders a small HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1146
source(content = nil, escape: true, **options, &block) Link
Renders a void source HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 291
span(content = nil, escape: true, **options, &block) Link
Renders a span HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1155
stop(content = nil, escape: true, **options, &block) Link
Renders a self-closing stop HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 417
strong(content = nil, escape: true, **options, &block) Link
Renders a strong HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1164
style(content = nil, escape: true, **options, &block) Link
Renders a style HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1173
sub(content = nil, escape: true, **options, &block) Link
Renders a sub HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1182
summary(content = nil, escape: true, **options, &block) Link
Renders a summary HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1191
sup(content = nil, escape: true, **options, &block) Link
Renders a sup HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1200
table(content = nil, escape: true, **options, &block) Link
Renders a table HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1209
tbody(content = nil, escape: true, **options, &block) Link
Renders a tbody HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1218
td(content = nil, escape: true, **options, &block) Link
Renders a td HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1227
template(content = nil, escape: true, **options, &block) Link
Renders a template HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1236
textarea(content = nil, escape: true, **options, &block) Link
Renders a textarea HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1245
tfoot(content = nil, escape: true, **options, &block) Link
Renders a tfoot HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1254
th(content = nil, escape: true, **options, &block) Link
Renders a th HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1263
thead(content = nil, escape: true, **options, &block) Link
Renders a thead HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1272
time(content = nil, escape: true, **options, &block) Link
Renders a time HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1281
title(content = nil, escape: true, **options, &block) Link
Renders a title HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1290
tr(content = nil, escape: true, **options, &block) Link
Renders a tr HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1299
track(content = nil, escape: true, **options, &block) Link
Renders a void track HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 300
u(content = nil, escape: true, **options, &block) Link
Renders a u HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1308
ul(content = nil, escape: true, **options, &block) Link
Renders a ul HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1317
use(content = nil, escape: true, **options, &block) Link
Renders a self-closing use HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 426
var(content = nil, escape: true, **options, &block) Link
Renders a var HTML element
Refer to the class documentation for more details.
Source: on GitHub
# File actionview/lib/action_view/helpers/tag_helper.rb, line 1326