For some reason this feature isn’t documented at all, but you can set a default CSS class for forms generated by the Formtastic’s semantic_form_for method.

For example, when using Twitter Bootstrap, you may want to apply form-horizontal class to all your forms:

# config/initializers/formtastic.rb
Formtastic::Helpers::FormHelper.default_form_class = "form-horizontal"