Soc/app/controllers/home_pages_controller.rb

10 lines
214 B
Ruby
Raw Normal View History

2023-08-20 11:49:21 +00:00
# frozen_string_literal: true
class HomePagesController < ApplicationController
skip_before_action :require_login
2024-03-07 09:14:06 +00:00
def index
@latest_blog_post = BlogPost.published.order(created_at: :desc).first
end
2023-08-20 11:49:21 +00:00
end