# Condition for find based on a related model?

**URL:** <https://www.ruby-forum.com/t/condition-for-find-based-on-a-related-model/112935>\
**Category:** Rails\
**Created:** [August 24, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/condition-for-find-based-on-a-related-model/112935 "2007-08-24T17:36:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![s0nspark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Post date:** [August 24, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/condition-for-find-based-on-a-related-model/112935/1 "2007-08-24T17:36:02Z")

</div>

I recently refactored a table/model to split off some of the fields into  
a child table. Initially there was only a single data set related to the  
model but now there may be more than one…

My problem now is that I was using a filtered find to pull a subset of  
the data based on the value of some of the moved fields. Is there a way  
to specify the find conditions so that they work through the has\_many  
relationship?

I think I may be confusing myself 🙂

Thanks much for any assistance!

Cheers,  
Tim
