I am a newbie and have created a small blog-like app. Im have tried to
implement the saerch function following this tutorial: http://snippets.dzone.com/posts/show/1691
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
the controller:
What does p @phrase return if you do it prior to the query line
p @phrase @results = Funktioner.find(:all, :conditions => [ “Description
LIKE ?”, @searchphrase])
Also what about @searchphrase = “%#{@phrase}%”
arbirk wrote:
I am a newbie and have created a small blog-like app. Im have tried to
implement the saerch function following this tutorial: http://snippets.dzone.com/posts/show/1691
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
the controller: