ja hallo erstmal,... Am Donnerstag, 8. November 2007 schrieb Moritz Heidkamp: > Hallo Jan, > > Am Thu, 8 Nov 2007 15:04:59 +0100 schrieb Jan Luehr <[EMAIL PROTECTED]>: > > def save_children > > [contact_combies,contact_interactions,events].each do |c| > > unless c.should_ignore? > > An dieser Stelle ist c ein AssociationProxy-Objekt, keine Instanz (ich > schließe aus den Namen contact_combies usw. einfach mal, dass es sich um > has_many-Assoziationen handelt). Du benötigst also noch eine weitere > Schleife: > > [contact_combies,contact_interactions,events].each do |assoc| > assoc.each do |c| > # usw.
Danke - dass habe ich auch noch nicht gewusst. Ich dachte, dass wären einfach arrays, die auch diese Art verkettet werden. Keep smiling yanosz _______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
