From b0ffa683dcee0f55a98a4d4dbed6947eaabe14b8 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Thu, 23 Jun 2016 12:24:58 +0300 Subject: [PATCH] Show most recent conference first in conferences#index --- app/controllers/conference_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conference_controller.rb b/app/controllers/conference_controller.rb index 3e05fa57..039220f8 100644 --- a/app/controllers/conference_controller.rb +++ b/app/controllers/conference_controller.rb @@ -5,7 +5,7 @@ class ConferenceController < ApplicationController load_resource :program, through: :conference, singleton: true, except: :index def index - @current = Conference.where('end_date >= ?', Date.current).order('start_date ASC') + @current = Conference.where('end_date >= ?', Date.current).reorder(start_date: :asc) @antiquated = @conferences - @current end