ActiveRecord habtm through belongs_to
Posted
by phillee
on Stack Overflow
See other posts from Stack Overflow
or by phillee
Published on 2010-04-08T20:01:15Z
Indexed on
2010/04/08
20:03 UTC
Read the original article
Hit count: 101
ruby-on-rails
|activerecord
Setup:
ModelA <- habtm -> ModelB <- has_many / belongs_to -> ModelC
I'd like to setup a habtm between ModelB and ModelC, I've tried
has_many :ModelA, :through => :Model3
But that doesn't seem to work. Is there a way to accomplish this?
© Stack Overflow or respective owner