accepts_nested_attributes_for tries to find the corresponding association, which is non-existent when DB schema is empty and migrations are just about to be run.
For that reason, it throws an error such as ArgumentError: No association found for name some_association'. Has it been defined yet?
accepts_nested_attributes_for
tries to find the corresponding association, which is non-existent when DB schema is empty and migrations are just about to be run.For that reason, it throws an error such as
ArgumentError: No association found for name some_association'. Has it been defined yet?
What's the best workaround for this problem?