Acts_as_ferret with :conditions

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs