today_ai_weather/app/controllers
songtianlun 0a6926421f refactor: update popularity scope and controller logic
- Change `by_popularity` method in `City` model to use `start_time` for filtering views.
- Update `by_popularity` in `WeatherArt` model to limit results and incorporate the correct popularity calculation.
- Adjust `HomeController` to define `@popular_shuffle_arts` and `@latest_arts` with appropriate scopes.

These changes improve the accuracy of popularity retrieval for both cities and weather arts, simplifying the logic in the controller and leveraging updated model methods for performance.
2025-02-12 17:54:57 +08:00
..
concerns init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
application_controller.rb feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
arts_controller.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
cities_controller.rb feat: add country filter to cities controller 2025-02-12 15:12:23 +08:00
home_controller.rb refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
sitemaps_controller.rb feat: add sitemap functionality 2025-01-26 00:07:44 +08:00
weather_arts_controller.rb refactor: adjust ordering of weather arts 2025-02-03 11:15:31 +08:00