show conference until its last day and order by start date

This commit is contained in:
differentreality 2013-07-28 22:37:26 +03:00
parent f905bb8f8f
commit ffadfca7a2

View file

@ -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