diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index ba803bc..db0c1a2 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,7 +1,7 @@ class HomeController < ApplicationController def index @popular_arts = WeatherArt.includes(:city, :image_attachment).by_popularity(3) - @random_arts = WeatherArt.includes(:city, :image_attachment).random(3) + # @random_arts = WeatherArt.includes(:city, :image_attachment).random(3) @latest_arts = WeatherArt.includes(:city, :image_attachment).latest(6) @featured_arts = WeatherArt.includes(:city, :image_attachment).order(created_at: :desc).limit(5) set_meta_tags( diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index fc78a2f..1a32e67 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -29,8 +29,8 @@ <%= render 'home/arts', arts: @latest_arts %>