<% klass = f.object.class %>
<%- klass.admin_attributes(:form).each do |attr| -%>
  <% if attr == :value %>
    <% f.object.derive_data_source(true) %>
    <%= render "field_#{klass.crud.find(:fields, attr, :type)}", f: f, attr: attr, object: f.object, label: :value %>
  <% else %>
    <%=
      assoc    = klass.reflect_on_association(attr)
      partial  = 'form_field'
      partial += '_nested' if assoc && !assoc.belongs_to? && assoc.is_nested?
      render partial, :f => f, :attr => attr
    %>
  <% end %>
<%- end -%>

<% klass = f.object.class %>
<%- klass.admin_attributes(:form).each do |attr| -%>
  <% f.object.init_tags(true);
  <% if attr == :value %>
    <% f.object.derive_data_source(true) %>
    <%= render "field_#{klass.crud.find(:fields, attr, :type)}", f: f, attr: attr, object: f.object, label: :value %>
  <% else %>
    <%=
      assoc    = klass.reflect_on_association(attr)
      partial  = 'form_field'
      partial += '_nested' if assoc && !assoc.belongs_to? && assoc.is_nested?
      render partial, :f => f, :attr => attr
    %>
  <% end %>
<%- end -%>

Initialize tags to ensure a resources has acts-as-taggable-on enabled for it's associated tag settings
Initialize tags to ensure a resources has acts-as-taggable-on enabled for it's associated tag settings