Merge pull request #33 from differentreality/home
Home page conferences order
This commit is contained in:
commit
f8a6f9626f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue