Skip to content
Menu
Justin Ball
  • About
  • Privacy Policy
Justin Ball

Category: has_many

ActiveRecord has_many through multiple models

Posted on March 24, 2014November 1, 2021

More than a few times now I’ve run into a situation where I really need to be able to relate one object to another through multiple tables – basically use ‘has_many’ twice. Here’s an example set of objects where a user can have many products but to get to the products you have to first…

©2025 Justin Ball | Powered by SuperbThemes & WordPress