I’m just starting out with some Rails development and have the following
table structure. I understand how to do a two table has many join but I
actually need to relate a third table. Here is my structure:
My Component model has the following:
class Component < ActiveRecord::Base
I haven’t actually added anything to my Element model but suspect that
also needs a habtm association. My bigger issue is, how to I associate
things with the element_types table?