This project is archived and is in readonly mode.
Error when saving nested polymorphic models in a form
-
Josep M. Bach
Seems that the builder doesn't know it's a one-to-many relationship or something like that, could it be?
In this particular line it checks for the
[]naming afterperson[phones]- if it had found it, it would have triggered the#retrieve_auto_indexmethod, which assigns an index ([0], [1]...). Sadly it matches nothing, so I'm guessing someone in the call stack is not checking if person->phones is a 1-n relationship.Any ideas?
-
activestylus
Just tested in 2.3.8 and works fine. Appears to be a Rails 3 issue.
-
activestylus
- Assigned user set to Aaron Patterson