I am a newbie and have created a small blog-like app. Im have tried to
implement the saerch function following this tutorial:
Everything seems to work when the searchphase is empty (it finds the
454 rows) but as soon as I start typing it returns nothing. Here is
@phrase = request.raw_post || request.query_string a1 = "%" a2 = "%" @searchphrase = a1 + @phrase + a2 @results = Funktioner.find(:all, :conditions => [ "Description
LIKE ?", @searchphrase])
@number_match = @results.length render(:layout => false)
The Description-column is text rich and contains the word ledelse, but
when searched it returns:
‘ledelse=’ not found!
One of the puzzels is where the equal sign comes from. It appears also
in the logging og the mysql queries.
Can you help me - anyone?