= f.inputs title do
  - if hint
    %p.inline-hint= hint
  %div{:id => association_name.to_s}
    = f.semantic_fields_for association_name do |association_form|
      = render association_name.to_s.singularize + "_fields", :f => association_form
    .links
      = add_association_link t(:add_association, :name => t("activerecord.models." + association_name.to_s.singularize)), f, association_name

= f.inputs title do
  - if hint
    %p.inline-hint= hint
  %div{:class => association_name.to_s}
    = f.semantic_fields_for association_name do |association_form|
      = render association_name.to_s.singularize + "_fields", :f => association_form
    .links
      = add_association_link t(:add_association, :name => t("activerecord.models." + association_name.to_s.singularize)), f, association_name

Change id attribute in dynamic associations to class attribute
Change id attribute in dynamic associations to class attribute

This can lead to duplicate ids in nested forms.
