• <% unless record.leaf? || record.root? %> <% if children.blank? %> <%= link_to '+', resource.member_path(record, :action => :expand), :remote => true %> <% else %> <%= link_to '–', resource.member_path(record, :action => :collapse), :remote => true %> <% end %> <% end %> <% tree_fields.each do |field| -%> <%= render_field field, record %> <% end -%>
    <%= link_to 'edit', resource.edit_path(record) if update_fields.present? %> <% controller._members.each do |member| %> <%= link_to member.label, resource.member_path(record, :action => member.action) if member.display? %> <% end %> <%= link_to 'destroy', resource.member_path(record), :confirm => "Are you sure?", :method => :delete if configuration.destroy %>
    <%= children %>