wip: OrdersController#new
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user