- Update CitiesController to list all cities ordered by name - Add latest and featured weather arts in HomeController - Display city details, including weather art history, in Cities#show - Expand layout with a footer and enhanced navigation - Integrate new daisyUI plugin for improved styling These changes improve user navigation and visual presentation on both city and weather art pages, making it easier to browse and view information. The introduction of daisyUI also modernizes the UI with consistent design elements.
7 lines
229 B
Ruby
7 lines
229 B
Ruby
class HomeController < ApplicationController
|
|
def index
|
|
@latest_arts = WeatherArt.includes(:city).order(created_at: :desc).limit(6)
|
|
@featured_arts = WeatherArt.includes(:city).order(created_at: :desc).limit(5)
|
|
end
|
|
end
|