search for: some_c_instac

Displaying 1 result from an estimated 1 matches for "some_c_instac".

Did you mean: some_c_instace
2006 Jul 24
1
problem with has_many associations
...orary objects, this is the relation between them: A -(1,n)-> B -(1,1)-> C B -(1,n)-> D C -(1,n)-> D I have a "wizard" to create "A" objects, I''m storing everything in the session, something like this: a = A.new session[:a_object] = a ... b = B.new b.c = some_c_instace a.bs << b ... d = D.new b.ds << d then, after the wizard finishes, I want to save the structure in the DB, like this: a.save But it won''t work, active record says that the collections (bs and ds) are not valid. I have done this before, but with only one level: like if the...