# Has\_one :through type problem

**URL:** <https://www.ruby-forum.com/t/has-one-through-type-problem/128772>\
**Category:** Rails\
**Created:** [February 11, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/has-one-through-type-problem/128772 "2008-02-11T13:21:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobycatlin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Post date:** [February 11, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/has-one-through-type-problem/128772/1 "2008-02-11T13:21:17Z")

</div>

Hi,

I have a set of models with the following relationships:

parent has\_one intermediary  
intermediary has\_one child

I would like to be able to search the parent table based on the value  
of child but I don’t know how to do the join properly.

Does anyone have any idea?

Thanks in advance,  
Toby
