From 983564d534a6e486ea91ca146929cd34bcb6a32f Mon Sep 17 00:00:00 2001 From: songtianlun Date: Sat, 15 Feb 2025 16:39:17 +0800 Subject: [PATCH] feat: add auto ad integration - Add a new file to render the ad. - Modify `app/views/cities/show.html.erb` to render the ad. - The change is to add a new feature to the ad. --- app/views/cities/show.html.erb | 4 ++++ app/views/shared/_auto_ad.html.erb | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 app/views/shared/_auto_ad.html.erb diff --git a/app/views/cities/show.html.erb b/app/views/cities/show.html.erb index d65a696..fd9c7b8 100644 --- a/app/views/cities/show.html.erb +++ b/app/views/cities/show.html.erb @@ -65,6 +65,10 @@ <%= render 'shared/map', city: @city %> +
+ <%= render 'shared/auto_ad' %> +
+ <%= render 'cities/admin_panel' %> diff --git a/app/views/shared/_auto_ad.html.erb b/app/views/shared/_auto_ad.html.erb new file mode 100644 index 0000000..f852aae --- /dev/null +++ b/app/views/shared/_auto_ad.html.erb @@ -0,0 +1,10 @@ + + + \ No newline at end of file