feat(home): Display events instead of hardcoded content

This commit is contained in:
kbe
2025-08-30 13:51:44 +02:00
parent 2a2c249a54
commit 394190ace8
5 changed files with 51 additions and 104 deletions

View File

@@ -7,8 +7,7 @@ class PagesController < ApplicationController
# Homepage showing featured events
def home
# @events = Event.published.featured.limit(3)
# @events = Event.where(state: :published).order(created_at: :desc)
@events = Event.published.featured.limit(3)
if user_signed_in?
return redirect_to(dashboard_path)