Hi, i have two models:
has_many :photos, :dependent => :destroy
and I need Attribute model such as each photo has many attributes.
And here I’m not sure whether Attribute should be has_many: photos or
Moreover i need to use on photos and attributes FCA algorism to build
lattice and perhaps write it to db.
So do I need next model (eg. Lattice), maybe I should use
has_many :through ?
I use rails three weeks so I please for help as simple example
( doesn’t have to be pro )
how to associate these models.
Thank you in advance for your help.