Displaying 2 results from an estimated 2 matches for "forummember".
2006 Nov 04
0
Basic Q: Please help with iterating through an AR.find result
I''m really stuck on this, and it seems so basic! It''s frustrating..
Thanks.
I am working on a site that has Forums. There are two tables that track the
users on this site. One table ''Forum'' has one entry per forum. The next
table, ''ForumMember'' tracks each user''s status in each forum, if someone is
a member of 10 forums, they have 10 ForumMember entries. Forum has_many
ForumMembers, and ForumMember has_one Forum.
I have a main page in which I list all the Forums that a user is a member
of. I gather this data easily i...
2006 Nov 04
0
Need help with iterating through a ''find'' result
I am working on a site that has Forums. There are two tables that track the
users on this site. One table ''Users'' is basically the table for the
salted_authentication generator. The next table, ''ForumMember'' tracks each
user''s status in each forum. ForumMember contains a foreign key to Forum,
and to User.
I have a main page in which I list all the Forums that a user is a member
of. I gather this data easily in my controller, with:
def list
@forums = Forum.find_by_user(@sessio...