On mostly helpers, the last arg is a hash of html options for the element.
<%== f.labelform_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} %>
You can also check other alternatives in the documentation ActionsView::Helpers::FormHelper
On mostly helpers, the last arg is a hash of html options for the element.
<%= f.label @user, :html => {:class => 'x', 'data-bar' => 'baz'} %>
You can also check other alternatives in the documentation ActionsView::Helpers::FormHelper
On mostly helpers, the last arg is a hash of html options for the element.
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} %>
You can also check other alternatives in the documentation ActionsView::Helpers::FormHelper
On mostly helpers, the last arg is a hash of html options for the element.
<%= f.label @user, :html => {:class => 'x', 'data-bar' => 'baz'} %>
You can also check other alternatives in the documentation ActionsView::Helpers::FormHelper