Displaying 1 result from an estimated 1 matches for "invoice_attributes".
2012 Sep 08
0
:index => nil
On here:
http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-check_box-label-Gotcha
you see this code:
<%= fields_for "project[invoice_attributes][]", invoice, :index => nil
do |form| %>
<%= form.check_box :paid %>
...
<% end %>
why are they using :index => nil in the example? I mean I know that
what it does is ensure that the invoice objects do not get passed an
index number so that you have this: project[inv...