form shows input fields with name like: name="company[users_attributes][5][birth_date]"

If a rails generated form shows a form input field with a name like:

name=“company[users_attributes][5][birth_date]”

What kind of model setup does that normally mean assuming it is following convention?

Or is this not following convention?

If a rails generated form shows a form input field with a name like:

name="company[users_attributes][5][birth_date]"

What kind of model setup does that normally mean assuming it is following convention?
Or is this not following convention?

It is following the conventions for accepts_nested_attributes_for :user

Walter

If a rails generated form shows a form input field with a name like:

name="company[users_attributes][5][birth_date]"

What kind of model setup does that normally mean assuming it is following convention?
Or is this not following convention?

It is following the conventions for accepts_nested_attributes_for :user

Sorry, I meant :users.

I see.

Actually I made a typo, the index is not [5] but it is [0]. So this means it is creating the first user when you save the form probably right?