Soc/app/controllers/home_pages_controller.rb

12 lines
232 B
Ruby

# frozen_string_literal: true
class HomePagesController < ApplicationController
skip_before_action :require_login
def index
@latest_blog_post = BlogPost.published.order(created_at: :desc).first
end
def uses ; end
end