I'm trying to access data from the skins table through a nested include
with no luck. The association is all through imageasset but I do not
know how to figure it out. Any help is highly appreciated.
This won't work unless Furni has an association called imageasset,
which it doesn't. If you want Activerecord to go through image asset
you're going to need to either write
So in other words you mean that the imageasset model should have a
has_many :skin or should the association be in the imageasset table with
a skin id?
Either a has_many or a has_one. you need to tell activerecord how to
find a skin from an imageasset (it isn't enough to just say that
imageasset belongs_to :skin, rails won't guess the association in the
other direction).