Use Rails’ form_for but set custom classes, attributes on <form> element?

form_for seems to ignore any 'extra' attributes like a data-foo attribute or class passed as options in its second argument. = form_for @user, {:url =&gt; 'foo', :class =&gt; 'x', 'data-bar' =&gt;...