# Double has\_many :through

**URL:** <https://www.ruby-forum.com/t/double-has-many-through/91820>\
**Category:** Rails\
**Created:** [April 12, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/double-has-many-through/91820 "2007-04-12T16:49:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 12, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/double-has-many-through/91820/1 "2007-04-12T16:49:29Z")

</div>

Is it possible to have a has\_many :through on top of another has\_many  
:through?

So, A has\_many B through =\> C. Can I then use that has\_many relationship  
to  
create another has\_many :through? A has\_many D through =\> B? (assuming D  
has\_many B, of course)

-Nathan

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 13, 2007, 1:06am UTC](https://www.ruby-forum.com/t/double-has-many-through/91820/2 "2007-04-13T01:06:26Z")

</div>

On 4/13/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is it possible to have a has\_many :through on top of another has\_many  
> :through?
> 
> So, A has\_many B through =\> C. Can I then use that has\_many relationship  
> to create another has\_many :through? A has\_many D through =\> B? (assuming D  
> has\_many B, of course)
> 
> -Nathan

I actually tried this last night, but I could not get it to work like  
this.

Instead I ended up using has\_many with :finder\_sql but this is less  
than  
ideal aswell since you loose a log of methods on it.

If you come up with anything I would also like to know

Cheers
