jojo, now i see what you are doing, is just that i didnt saw the after
create the first time, you are using the self reserved word indeed to refer
to the created user in the after create, have you tried that before? why not
put the function in the loop after the user.save ?

i imagine that that it fail quietly?

On Mon, Sep 13, 2010 at 12:03 PM, Heinz Strunk <[email protected]> wrote:

> @brito: self always worked cause it's the instance of the current object
> which I wanna use so that should be fine.
>
> @Marnen: Actually they're not really users but NPCs which I need for
> various things and I need a lot of them to populate the world.
>
> Therefore it's not for test but to populate and I don't think factories
> are good for so many objects, right?
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to