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 414
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 423
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 432
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 288
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 297
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 306
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 162
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 441
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 450
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 459
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 468
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 171
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 477
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 486
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 495
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 504
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 180
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 522
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 531
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 315
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 540
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 549
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 189
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 558
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 567
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 576
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 585
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 594
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 603
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 612
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 621
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 630
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 639
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 648
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 324
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 657
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 198
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 666
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 675
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 684
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 702
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 711
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 720
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 729
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 738
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 747
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 756
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 765
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 774
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 783
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 207
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 792
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 801
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 810
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 216
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 225
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 819
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 828
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 234
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 837
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 846
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 855
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 333
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 243
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 864
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 873
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 882
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 252
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 900
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 918
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 927
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 936
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 945
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 954
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 963
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 972
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 342
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 981
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 351
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 360
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 990
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 999
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 1008
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 1017
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 369
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 1026
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 1035
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 1044
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 1053
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 1062
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 1071
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 1080
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 1089
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 1098
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 378
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 1107
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 1116
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 261
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 1125
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 387
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 1134
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 1143
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 1152
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 1161
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 1170
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 1179
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 1188
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 1197
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 1206
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 1215
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 1224
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 1233
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 1242
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 1251
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 1260
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 1269
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 270
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 1278
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 1287
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 396
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 1296