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 => 'foo', :class => 'x', 'data-bar' =>...