Displaying 1 result from an estimated 1 matches for "find_all_in_us".
2007 Apr 29
1
better nested set and :through
...thin a nested set?
for example:
admins = Group.find_by_name "admins"
admins.users # gives all users in the admins group.
and
admins.all_children # gives me all the groups
I thought the following methods sounded promising, but i get
NoMethodError''s from them:
admins.children.find_all_in_users
admins.children.find_in_users
Perhaps i''m going about this the wrong way or i''m missing a more obvious
solution. Can anyone shed some light on it?
Cheers,
-vince
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received...