# Acts\_as\_ferret with :conditions

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-with-conditions/173363>\
**Category:** Rails\
**Created:** [August 7, 2009, 9:27am UTC](https://www.ruby-forum.com/t/acts-as-ferret-with-conditions/173363 "2009-08-07T09:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neetal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba8739/32.png) [@neetal](https://www.ruby-forum.com/u/neetal)\
**Post date:** [August 7, 2009, 9:27am UTC](https://www.ruby-forum.com/t/acts-as-ferret-with-conditions/173363/1 "2009-08-07T09:27:06Z")

</div>

Hi,

I want to implement search in my rails application.  
I tried using acts\_as\_ferret plugin , and it worked for me.But i was not  
able to use the conditions over it. To make it clear

I used acts\_as\_ferret as :-

@result = Community.find\_with\_ferret(’_’+search\_query+’_’)

it worked also, but i need to something like this :-

@result = Community.find\_with\_ferret(’_’+search\_query+’_’,:conditions  
=\>{:public =\>1}

Is it possible?? I tried all possible ways , but no luck.

Can anyone help me with this , if this works , or else please suggest  
some good search mechanism , which i can use with my rails application ,  
which has all features like , conditions , pagination etc.

Any help is appreciated. …

Thanks in Advance …

Neetal
