From 06bc2b15312bd332b9b9e1f5ae34af3fa1974bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sun, 15 Oct 2023 22:16:16 +0800 Subject: [PATCH] chinese params with uri encode --- app/models/seminar_main.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/seminar_main.rb b/app/models/seminar_main.rb index 6f092da..62334de 100644 --- a/app/models/seminar_main.rb +++ b/app/models/seminar_main.rb @@ -694,4 +694,8 @@ class SeminarMain def enable_review_result self.assign_mode == 2 end + def to_param + tmp = super() + URI.encode(tmp) + end end