fix event ordering
This commit is contained in:
@ -2,7 +2,7 @@ class EventsController < ApplicationController
|
||||
before_action :set_event, only: %i[ show edit update destroy ]
|
||||
|
||||
def index
|
||||
@events = Event.where("start_date > ? " , Date.today - 3.days)
|
||||
@events = Event.where("start_date > ? " , Date.today - 3.days).order(:start_date)
|
||||
end
|
||||
|
||||
def show
|
||||
|
Reference in New Issue
Block a user