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">
# File actionview/lib/action_view/helpers/tag_helper.rb, line 238
def attributes(attributes)
tag_options(attributes.to_h).to_s.strip.html_safe
end