Thing.group_id_equals(id).title_or_description_like('text')
Lowell
> --
> You received this message because you are subscribed to the Google
> Groups "Searchlogic" group.
> To post to this group, send email to searc...@googlegroups.com.
> To unsubscribe from this group, send email to searchlogic...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/searchlogic?hl=en
> .
>
named_scope :or_for_title_description, lambda {|text| { :conditions =>
['title LIKE ? OR description LIKE ?', text, text]}}
Then do:
Thing.group_id_equals(id).or_for_title_description('text')
untested
Lowell