I have A that belongs to B that belongs to C
In my model of A, can i do…
belongs_to :B
belongs_to :C, :through :B
thanks for any tips…
I have A that belongs to B that belongs to C
In my model of A, can i do…
belongs_to :B
belongs_to :C, :through :B
thanks for any tips…
There is no :through option on belongs_to.
You could do:
def cs
b.cs
end
On Dec 21, 2007 4:30 AM, gemblon (t.b.)
[email protected]
wrote:
–
Ryan B.
Ryan B. wrote:
There is no :through option on belongs_to.
–
Ryan B.
http://www.frozenplague.net
thanks again ryan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs