I am using four models user, member, unit, society
I have linked member, unit and society through member_property table
user has one to one association with member while all other models
have many to many association.
How do I link user to member, and user to unit through member
i wanted something like
<%= @user.member.unit.unit_number %></p>
Can someone guide how to achieve this