Belongs to ... belongs to.. :through

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.
http://www.frozenplague.net

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.

| Privacy Policy | Terms of Service | Remote Ruby Jobs