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.



Gruß
Moritz
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an