# Controller for static pages and user dashboard # Handles basic page rendering and user-specific content class PagesController < ApplicationController # Require user authentication for dashboard access # Redirects to login page if user is not signed in before_action :authenticate_user!, only: [ :dashboard ] # User dashboard showing personalized content # Accessible only to authenticated users def dashboard end end