al13ntown/app/controllers/welcome_controller.rb
2026-08-24 20:12:41 +00:00

21 lines
409 B
Ruby

class WelcomeController < ApplicationController
allow_unauthenticated_access(only: %i[index show])
def index
@latest_report = Sitereport.order(created_at: :desc).limit(5)
# @latest_report = Sitereport.all.order(created_at: :desc)
@latest_post = Post.order(created_at: :desc).first
end
def new
end
def edit
end
def destroy
end
def update
end
def show
end
def create
end
end