method
attributes
v7.0.0 -
Show latest stable
- Class:
ActionView::Helpers::TagHelper::TagBuilder
attributes(attributes)public
Transforms a Hash into HTML Attributes, ready to be interpolated into ERB.
<input <%= tag.attributes(type: :text, aria: { label: "Search" }) %> > # => <input type="text" aria-label="Search">