X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fcontrollers%2Fvideo_controller.rb;h=31575d86e6566b54b0b3953b1c69945417131dde;hb=9937b32d7394e77fa89915b66f9645024ccb2009;hp=bf283efcad788bd395bc787c64093680e38a56dc;hpb=d95e8f6a8205bf08d7de6d4f069acba9933cdba0;p=cs356-p2-videostore.git diff --git a/app/controllers/video_controller.rb b/app/controllers/video_controller.rb index bf283ef..31575d8 100644 --- a/app/controllers/video_controller.rb +++ b/app/controllers/video_controller.rb @@ -55,6 +55,6 @@ class VideoController < ApplicationController def searchresults query = params[:q] - @videos = Video.find(:all, :conditions => ["title = ?", query]) + @videos = Video.find(:all, :conditions => ["title like ?", query[0]+"%"]) end end