# How to perform search on multiple models and controllers

**URL:** <https://www.ruby-forum.com/t/how-to-perform-search-on-multiple-models-and-controllers/110945>\
**Category:** Ferret\
**Created:** [August 1, 2007, 9:50am UTC](https://www.ruby-forum.com/t/how-to-perform-search-on-multiple-models-and-controllers/110945 "2007-08-01T09:50:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![myowntribe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@myowntribe](https://www.ruby-forum.com/u/myowntribe)\
**Post date:** [August 1, 2007, 9:50am UTC](https://www.ruby-forum.com/t/how-to-perform-search-on-multiple-models-and-controllers/110945/1 "2007-08-01T09:50:24Z")

</div>

Hi

I am using acts\_as\_ferret and it works great on inidvidual models. Like  
I can search seperately for fileds indexed in BasicProfile model and  
fields indexed in WorkProfile model.

I would like to know if it is possible to search commonly for all the  
fileds in these two models?

Cheers

Cass

---

<div class="post-metadata">

**Author:** ![myowntribe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a88e4f/32.png) [@myowntribe](https://www.ruby-forum.com/u/myowntribe)\
**Post date:** [August 1, 2007, 10:37am UTC](https://www.ruby-forum.com/t/how-to-perform-search-on-multiple-models-and-controllers/110945/2 "2007-08-01T10:37:42Z")

</div>

On Wed, Aug 01, 2007 at 09:50:24AM +0200, Cass A. wrote:

> Hi
> 
> I am using acts\_as\_ferret and it works great on inidvidual models. Like  
> I can search seperately for fileds indexed in BasicProfile model and  
> fields indexed in WorkProfile model.
> 
> I would like to know if it is possible to search commonly for all the  
> fileds in these two models?

check out multi\_search

Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
