Hi. I’m trying to implement a basic search, but the LIKE clause in the
query dosen’t seem to work as I expected. The result is only found if
the exact phrase is typed in to the field.
Have I made some sort of error?
query = params[:title]
@results = Auction.find(:all, :conditions => [“title like ?”, query])
Any help would be appreciated. Thanks.