Try putting the wildcards in the parameters instead of the query:
@items = Item.find(:all, :conditions => [“description like ? or text like ?”, “%#@search_text%”, “%#@search_text%”])
Try putting the wildcards in the parameters instead of the query:
@items = Item.find(:all, :conditions => [“description like ? or text like ?”, “%#@search_text%”, “%#@search_text%”])