today_ai_weather/app/views
songtianlun e5c1461e8a feat: add voting functionality for votable entities
- Create VotesController to manage voting actions
- Implement Vote model with polymorphic associations
- Add vote buttons to the city and weather art views
- Integrate vote counting and user vote tracking
- Define routes for the votes resource

This commit sets up a voting mechanism for cities and weather arts, allowing users to upvote or downvote. It includes seamless integration of user sessions to track individual votes, ensuring votes can be modified or deleted based on user interaction.
2025-02-07 13:10:53 +08:00
..
arts feat: add pagination to cities and arts index 2025-01-23 17:30:05 +08:00
cities feat: add voting functionality for votable entities 2025-02-07 13:10:53 +08:00
home feat: update latest weather art display 2025-02-02 00:21:51 +08:00
kaminari feat: add pagination to weather arts gallery 2025-01-23 14:10:13 +08:00
layouts Update application.html.erb 2025-02-02 10:46:06 +08:00
pwa init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
shared style: adjust pagination button sizes 2025-02-01 14:45:17 +08:00
votes feat: add voting functionality for votable entities 2025-02-07 13:10:53 +08:00
weather_arts feat: add voting functionality for votable entities 2025-02-07 13:10:53 +08:00