show conference until its last day and order by start date
This commit is contained in:
parent
f905bb8f8f
commit
ffadfca7a2
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
class HomeController < ApplicationController
|
class HomeController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@today = Date.current
|
@today = Date.current
|
||||||
@current = Conference.where("start_date >= ?", @today)
|
@current = Conference.where("end_date >= ?", @today).order("start_date ASC")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue