From a3f2e1acd3fe12d745866245ae4dae66d6fcd8d0 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Mon, 26 Nov 2007 19:44:44 -0800 Subject: [PATCH] Fix the search in the Video Controller Signed-off-by: Ira W. Snyder --- app/controllers/video_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/video_controller.rb b/app/controllers/video_controller.rb index 34678fc..0e3d99b 100644 --- a/app/controllers/video_controller.rb +++ b/app/controllers/video_controller.rb @@ -56,7 +56,7 @@ class VideoController < ApplicationController def search if request.post? @query = params[:q] - @videos = Video.find(:all, :conditions => ["title like ?", "%#{query[0]}%"]) + @videos = Video.find(:all, :conditions => ["title like ?", "%#{@query[0]}%"]) render :action => 'searchresults' else render :action => 'search' -- 2.25.1