.row.nested-fields <% nested_resource.belong_tos_attributes.each do |attribute| -%>

.col-md-2<%= render_field(attribute, depth: 1).sub('  ', '') -%>

<% end -%> <% nested_resource.attributes.each do |attribute| -%>

.col-md-2<%= render_field(attribute, depth: 1).sub('  ', '') -%>

<% end -%>

.col-md-1
  = link_to_remove_association(f, data: { confirm: 'Really remove?'}) do
    %span.glyphicon.glyphicon-trash