today_ai_weather/app/controllers/home_controller.rb
songtianlun 11d7adba99 chore: comment out unused popular arts section
- Comment out the popular weather art rendering and related titles in
  the home index view.
- Keep the latest weather art section active for display.

This change removes sections of code related to popular and random
weather art, which are not currently in use, while preserving a
clean interface for the latest weather art.
2025-04-08 11:14:00 +08:00

14 lines
710 B
Ruby

class HomeController < ApplicationController
def index
# @popular_arts = WeatherArt.includes(:image_attachment, city: :country).by_popularity(3)
@latest_arts = WeatherArt.includes(:image_attachment, city: :country).latest(6)
# @random_arts = WeatherArt.includes(:city, :image_attachment).random(3)
# @featured_arts = WeatherArt.includes(:city, :image_attachment).order(created_at: :desc).limit(5)
set_meta_tags(
title: "AI-Generated Weather Art",
description: "Experience weather through artistic AI visualization. Daily updated weather art for cities worldwide.",
keywords: "AI weather art, weather visualization, city weather, artificial intelligence"
)
end
end