Tag Archives: through

has_and_belongs_to_many or has_many :through?

As you may (or may not) know, there are two ways to build a many-to-many (or N-N) relationship with Rails. The first way uses has_and_belongs_to_many in both models. You’ll have to create a join table that has no corresponding model … Continue reading

Posted in Ruby on Rails | Tagged , , | 4 Comments