I have 3 tables like this:
So UserSkill table links User and Skill table together with the relationship: User can has many Skills. It means User has many UserSkill and Skill has many UserSkill.
I would like to do something like: when I view User id=2, it must display the user detail of course, and list all the skills that link to this user. I dont know how to do it. Please so me the solution for both controller and view. Thanks
User: id Skill: id UserSkill: id, user_id, skill_id
So UserSkill table links User and Skill table together with the relationship: User can has many Skills. It means User has many UserSkill and Skill has many UserSkill.
I would like to do something like: when I view User id=2, it must display the user detail of course, and list all the skills that link to this user. I dont know how to do it. Please so me the solution for both controller and view. Thanks
