I will have the model Tag
it will have relationship HABTM
with POSTS
.
But I want it to also have HABTM
relationship with USERS
because my goal is in the future to find posts that have the same tags as the user.
How do I? Do I create a common relationship by creating two separate tables for both? And then, how do I search for posts that have the same tags as the given user?