HELLO, I’M SERHAT AND THIS IS MY FANCY TITLE.

Using has_many :through for nested has_many relations in Rails


has_many :through is a useful association type of Rails. It's mostly popular and often used as a join model for many-to-many relations.

rails-has-many-through

However, has_many :through is more than a simple join model, because it conducts INNER JOIN(s) on related models. We can also take the advantage of this beha...

Continue reading