Forum: Ruby on Rails indexing for sub items appears to fail after validation fail

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Luke Galea (Guest)
on 2006-01-13 00:29
(Received via mailing list)
Hi all,

I have a table with an associated (has_many) table and a single form
to edit the parent that displays the children as well.
The associated objects are represented via partials that contain
indexed fields like: <%= text_field 'form[]', 'pages' %>

When there is a validation failure in the "child" form the oddest
thing is happening, when the partial is rendered again the id is
blank and the index operator is ignored..

Does this make sense? What could be causing this?
This topic is locked and can not be replied to.