The following is a longtime favorite guest post by Flatiron alum Kevin McNamee, a software engineer at Casper. When mapping associations between models in your Rails application, you will inevitably come to a point when two models both âhasâ and âbelongs_toâ each other. In this situation, you need to choose between a has_many :through relationship and a has_and_belongs_to_many relationship. Given
{{#tags}}- {{label}}
{{/tags}}