projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add RentablePolicy, to get set up for adding policies
[cs356-p2-videostore.git]
/
app
/
controllers
/
game_controller.rb
diff --git
a/app/controllers/game_controller.rb
b/app/controllers/game_controller.rb
index
39f5485
..
42a037e
100644
(file)
--- a/
app/controllers/game_controller.rb
+++ b/
app/controllers/game_controller.rb
@@
-55,6
+55,6
@@
class GameController < ApplicationController
def searchresults
query = params[:q]
def searchresults
query = params[:q]
- @games = Game.find(:all, :conditions => ["title
= ?", query
])
+ @games = Game.find(:all, :conditions => ["title
like ?", query[0]+"%"
])
end
end
end
end