On 03/10/2009 09:54 AM, Tarscher wrote:
> I know how to access the users but I don't know how to search in the
> array (not the database) and then delete a user if a match is found.
>
So, provide examples and don't do top-posting.
group: 1
user: 1
group = Group.find(1)
user = group.users.find(1)
user.delete
HTH,
davi
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---