Going on from the user -> member -> team, model I've been working on, one thing I'd like to have in my Team class is the ability to return
how many users are members of a team.Something like...
<%= Self.Current_User.Member.Member_Count %>
Maybe I could do this by putting in a function in the helper or
model of Members,
if you use associations, you get a count method for free on associations
so if team has_many :members then you can do
team.members.count
(which unlike your example won't load the association if it doesn't
need to)
Fred