From 025ee0d06a06e749481ab5ae8e99d831d1e6600d Mon Sep 17 00:00:00 2001 From: songtianlun Date: Wed, 2 Apr 2025 15:06:02 +0800 Subject: [PATCH] fix: correct rendering syntax for wiki data badge - Updated rendering syntax in 'show' view for cities - Updated rendering syntax in 'show' view for weather arts These changes ensure that the 'wiki_data_badge' partial is rendered correctly in both views, improving the consistency of the code and fixing potential display issues caused by the previous syntax. --- app/views/cities/show.html.erb | 2 +- app/views/weather_arts/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/cities/show.html.erb b/app/views/cities/show.html.erb index 87903ba..ad8fa12 100644 --- a/app/views/cities/show.html.erb +++ b/app/views/cities/show.html.erb @@ -35,7 +35,7 @@
<%= @city&.state&.name %>
- <% render "shared/wiki_data_badge", city: @city %> + <%= render "shared/wiki_data_badge", city: @city %> diff --git a/app/views/weather_arts/show.html.erb b/app/views/weather_arts/show.html.erb index b369388..b1644c3 100644 --- a/app/views/weather_arts/show.html.erb +++ b/app/views/weather_arts/show.html.erb @@ -28,7 +28,7 @@
<%= @weather_art&.city&.state&.name %>
- <% render "shared/wiki_data_badge", city: @weather_art&.city %> + <%= render "shared/wiki_data_badge", city: @weather_art&.city %>
<%= @weather_art.formatted_time(:date) %>