From ffadfca7a220c619bcbd39e503bdd54c8c10ad31 Mon Sep 17 00:00:00 2001 From: differentreality Date: Sun, 28 Jul 2013 22:37:26 +0300 Subject: [PATCH] show conference until its last day and order by start date --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index fc91c1e5..eff09b35 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,6 +1,6 @@ class HomeController < ApplicationController def index @today = Date.current - @current = Conference.where("start_date >= ?", @today) + @current = Conference.where("end_date >= ?", @today).order("start_date ASC") end end