Files
aperonight/app/controllers/pages_controller.rb
kbe 1c7a62acde refactor: clean up controller before_action definitions and routes
- Standardize before_action syntax in controllers by removing extraneous spaces
- Comment out unused bundles routes in API v1 namespace
- Clean up whitespace in routes file

These changes improve code consistency and maintainability while preparing for future feature development.

💘 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
2025-08-24 22:31:42 +02:00

13 lines
434 B
Ruby

# 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