wip: OrdersController#new

This commit is contained in:
kbe
2025-09-03 01:52:48 +02:00
parent 6965eb89fd
commit 839120f2f4
10 changed files with 206 additions and 96 deletions

View File

@@ -1,13 +1,13 @@
# Controller for static pages and user dashboard
# Handles basic page rendering and user-specific content
class PagesController < ApplicationController
# Skip authentication for public pages
# skip_before_action :authenticate_user!, only: [ :home ]
before_action :authenticate_user!, only: [ :dashboard ]
# Homepage showing featured events
#
# Display homepage with featured events and incoming ones
def home
@events = Event.published.featured.limit(3)
@featured_events = Event.published.featured.limit(3)
if user_signed_in?
redirect_to(dashboard_path)