about summary refs log tree commit diff stats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/games_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 7d95b2c..490e0b0 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb
@@ -1,5 +1,9 @@
1class GamesController < ApplicationController 1class GamesController < ApplicationController
2 def index 2 def index
3 @games = Game.all 3 @games = Game.all
4
5 if params[:status]
6 @games = @games.where(status: params[:status])
7 end
4 end 8 end
5end 9end