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

On Dec 21, 2007 4:30 AM, gemblon (t.b.)
[email protected]

Ryan B.

Ryan B. wrote:

There is no :through option on belongs_to.

Ryan B.

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