Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Or
= form_for @user, :html =>: {class: 'x', data: { bar: 'baz' } } do |f|
Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Or
= form_for @user, :html => {class: 'x', data: { bar: 'baz' } } do |f|
Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Or
= form_for @user, html: {class: 'x', data: { bar: 'baz' } } do |f|
Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Or
= form_for @user, :html => {class: 'x', data: { bar: 'baz' } } do |f|
Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Use the :html hash:
= form_for @user, :html => {:class => 'x', 'data-bar' => 'baz'} do |f|
Or
= form_for @user, :html => {class: 'x', data: { bar: 'baz' } } do |f|
lang-rb