Merge pull request #33 from differentreality/home

Home page conferences order
This commit is contained in:
Henne Vogelsang 2013-07-29 04:39:52 -07:00
commit f8a6f9626f

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