Re: Newbie question - using sql "Like ''%...." in Find proble

Danny Burkes
Wed, 25 Oct 2006 03:05:55 -0000

text
> like %?%", @search_text, @search_text])
>

Try Item.find(:all, :conditions => ["description like ? or text like
?",
"%#{@search_text}%", "%#{@search_text}%"])