Okk So, I have @totalcount = @school.subjects.count
(School has many subjects, subjects has many teachers) Now, what if i wanted to count up the amount of teachers within that school? I need something like @totalcount = @school.subjects.teachers.count, but that doesn't work. i dont know the syntax... so how do i do something like that? thanks -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.