songtianlun
b9801aeb6b
- 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.
10 lines
167 B
Ruby
10 lines
167 B
Ruby
class CitiesController < ApplicationController
|
|
def index
|
|
@cities = City.all.order(:name)
|
|
end
|
|
|
|
def show
|
|
@city = City.friendly.find(params[:id])
|
|
end
|
|
end
|