[Rails] Re: multiple fields_for behavior

2011-08-18 Thread Matt Smith
<%# This can go anywhere... i.e. another partial %> <%= content_for :plate_fields %> On Aug 17, 11:40 pm, Matt Smith wrote: > With the following code and result below, why does the cars_attributes > index (i.e. name=owner[cars_attributes][>>>0<<<][color]) increment in &g

[Rails] multiple fields_for behavior

2011-08-18 Thread Matt Smith
With the following code and result below, why does the cars_attributes index (i.e. name=owner[cars_attributes][>>>0<<<][color]) increment in the second fields_for block when only one car is built? Shouldn't it stay the same because only one car was built? Is this standard behavior? If so, what is