An elaboration of has_many, has_many-:through & HABTM associations. Prerequisite: Rails Association — Part 1
What, Why, How & 3 Types of Associations — belongs to, has one & has one — through discussed.medium.com Table of Contents ↦ has_many ↦ has_many — :through
↪ one-to-many
↪ many-to-many ↦ has_and_belongs_to_many ↦ has_many-:through or has_and_belong_to_many? ↦ Relationships The belongs_to, has_one and has_one-:through associations are discussed in my previous article. In this article, we will discuss, has_many, has_many-:through and has_and_belongs_to_many associations.