search for: number_match

Displaying 1 result from an estimated 1 matches for "number_match".

2006 Jun 07
5
little Live search problem
...ays ALL the Test names in the database! def live_search @phrase = request.raw_post || request.query_string a1 = "%" a2 = "%" @searchphrase = a1 + @phrase + a2 @results = Test.find(:all, :conditions => [ "test_name LIKE ?", @searchphrase]) @number_match = @results render(:layout => false) end -- Posted via http://www.ruby-forum.com/.