From e9f409a0f9c38095f6e9b5a6b85aaf046d545a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Thu, 18 Apr 2024 20:23:56 +0800 Subject: [PATCH] Fix bug. --- app/controllers/actives_controller.rb | 2 ++ app/views/actives/show.html.erb | 2 +- app/views/actives/show_data.html.erb | 2 +- app/views/admin/actives/_index.html.erb | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/actives_controller.rb b/app/controllers/actives_controller.rb index edd21ea..3b42c19 100644 --- a/app/controllers/actives_controller.rb +++ b/app/controllers/actives_controller.rb @@ -1,5 +1,7 @@ class ActivesController < ApplicationController + FrontendMethods = ["show_privacy", "show_data"] + helper MemberHelper def index diff --git a/app/views/actives/show.html.erb b/app/views/actives/show.html.erb index 5df9ee3..9c55342 100644 --- a/app/views/actives/show.html.erb +++ b/app/views/actives/show.html.erb @@ -33,7 +33,7 @@
- <%= @act.title %> + <%= @act.title.html_safe %>
diff --git a/app/views/actives/show_data.html.erb b/app/views/actives/show_data.html.erb index b758ec1..930f524 100644 --- a/app/views/actives/show_data.html.erb +++ b/app/views/actives/show_data.html.erb @@ -8,7 +8,7 @@ @act_time_range = data["act_time_range"] %> -

<%= @act.title %>

+

<%= @act.title.html_safe %>

diff --git a/app/views/admin/actives/_index.html.erb b/app/views/admin/actives/_index.html.erb index b18bd99..d2e3a3d 100644 --- a/app/views/admin/actives/_index.html.erb +++ b/app/views/admin/actives/_index.html.erb @@ -28,7 +28,7 @@ <% if act.expired? %> <%= t(:expired) %> <% end %> - <%= act.title %> + <%= act.title.html_safe %>