feat(home): Display events instead of hardcoded content
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user