title: Rails nested form not working (child parameters not passed at all)
body: <p>Model</p>
  
  <pre><code>`Buyer has_many :orders`
  `Buyer accepts_nested_attributes_for :order`
  `Order belongs_to :buyer`
  </code></pre>
  
  <p>View (<code>buyers#new</code>)</p>
  
  <pre><code>&lt;%= form_for @buyer do |f| %&gt;
    &lt;%= f.fields_for :orders do |o| %&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-xs-12"&gt;
          &lt;%= o.label "Select your meal" %&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="row section"&gt;
        &lt;div class="col-xs-1"&gt;&lt;/div&gt;
          &lt;% ["Pasta, pesto, &amp; pea greens (veggie)",
             "Mushroom cutlets &amp; mornay sauce (veggie)",
             "Italian breaded pork chop",
             "Chicken kabobs with tzatziki",
          "Asian-style sweet &amp; sour beef"].each do |m| %&gt;
             &lt;div class="col-xs-2 zero-padding"&gt;
               &lt;div class="col-xs-12"&gt;
                 &lt;% image_tag "#{m}.jpg" %&gt;
               &lt;/div&gt;
               &lt;div class="col-xs-12 text-center"&gt;
                 &lt;%= o.radio_button :meal, m %&gt;
                 &lt;br&gt;
                 &lt;%= m %&gt;
               &lt;/div&gt;
             &lt;/div&gt;
          &lt;% end %&gt;
        &lt;div class="clearfix"&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
    ...
  &lt;% end %&gt;
  </code></pre>
  
  <p>Controller (<code>buyers</code>)</p>
  
  <pre><code> def new
      @buyer = Buyer.new
      @buyer.orders.build
   end
  
   def create
     # just to illustrate what i'm talking about, even the unsanitized parameters do not have orders_attributes
     puts params
     =&gt; {"utf8"=&gt;"✓", "buyer"=&gt;{"first_stripe_token"=&gt;"tok_16zExiKQ2oHmpkBLo9y45Cv3", "delivery_instructions"=&gt;"random", "zipcode"=&gt;"02110", "email"=&gt;"test@example.com", "phone1"=&gt;"123", "phone2"=&gt;"456", "phone3"=&gt;"0789", "agree_tos"=&gt;"1"}, "controller"=&gt;"buyers", "action"=&gt;"create"}
   end
  
   def buyer_params
      params.require(:buyer).permit(:first_stripe_token, :phone1, :phone2, :phone3, :zipcode, :delivery_instructions, :agree_tos, :email, orders_attributes: [:meal] )
   end
  </code></pre>
  
  <p>Routes</p>
  
  <pre><code>match '/ondemand/create', to: 'buyers#create', via: :post, as: "buyers"
  </code></pre>
  
  <p>Some folks have asked questions about how to permit nested attributes via strong parameters. That's not my challenge. In my case, the nested attributes somehow are completely, as you can see above where I do a <code>puts</code> on the unsanitized parameters.</p>
  
  <p>help!</p>