today_ai_weather/app/views
songtianlun 0bca23ff77
Some checks failed
Docker Dev / docker (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Docker Main / docker (push) Has been cancelled
fix: correct state name presence check
- Update condition to check for state presence instead of name
- Ensure proper rendering of state badge in city and weather art views

This change improves the logic for displaying the state badge by
checking for the presence of the state object directly, which
prevents potential errors when the state name is not set. It
ensures that the badge is displayed correctly when a state is
associated with a city or weather art.
2025-04-26 00:29:33 +08:00
..
arts feat: add image alt text generation 2025-04-10 22:37:27 +08:00
cities fix: correct state name presence check 2025-04-26 00:29:33 +08:00
devise feat: add image alt text generation 2025-04-10 22:37:27 +08:00
home fix: correct alt attribute for image tag 2025-04-10 22:47:33 +08:00
kaminari feat: add pagination to weather arts gallery 2025-01-23 14:10:13 +08:00
layouts style: remove commented-out title line 2025-04-25 17:06:23 +08:00
pwa init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
rss feat: add JSON feed support for weather art 2025-03-05 14:59:02 +08:00
shared feat: enhance city description generation 2025-04-12 14:46:44 +08:00
sitemaps feat: add sitemap management feature 2025-02-24 17:28:21 +08:00
weather_arts fix: correct state name presence check 2025-04-26 00:29:33 +08:00