Introduction
Associations link different models so they can work together easily. This helps you organize related data like friends or orders connected to users.
You want to show all posts written by a user.
You need to find the author of a comment.
You want to list all products in an order.
You want to connect a profile to its user account.