title: Meteor: Custom AutoForm with array of objects
body: <p>I have a SimpleSchema which includes an array of objects:</p>
  
  <pre><code>Things.attachSchema( new SimpleSchema({
      name: {
          type: String,
          label: "Name",
          max: 50
      },
      fields: { 
          type: [Object],
      },
      fields.$.name: {
          type: String
      },
      fields.$.amount: {
          type: Number
      }
  }) )
  </code></pre>
  
  <p>I'm trying to create custom form making use of afEachArrayItem, but I can't work out how to refer to the attributes of each object within the array.</p>
  
  <p>My template looks like this (with html stripped out):</p>
  
  <pre><code>{{#autoForm collection="things" id="myForm" }}
      {{&gt; afQuickField name='schemaName'}}
  
      {{#afEachArrayItem name="fields"}}
  
          {{&gt; afFieldInput name="name"}  
          {{&gt; afFieldInput name="amount"}
  
      {{/afEachArrayItem}}
  
  {{/autoForm}}
  </code></pre>
  
  <p>What should be passed to "name" in the afFieldInputs?</p>