From bcf6445d92f1a57dff0b97bd9309f40b70088448 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 10:18:45 -0400 Subject: Added started/finished on dates to Game --- app/controllers/games_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/games_controller.rb') diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 490e0b0..8ddcf24 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -1,6 +1,6 @@ class GamesController < ApplicationController def index - @games = Game.all + @games = Game.order(started_on: :desc) if params[:status] @games = @games.where(status: params[:status]) -- cgit 1.4.1