fix event ordering

This commit is contained in:
Torsten
2023-09-06 10:16:40 +03:00
parent cc12f4a5a3
commit 358e95f701
2 changed files with 2 additions and 2 deletions

View File

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