From 7b52a160a2d3328c391ac201314d7e9bdde4bd42 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 15 Aug 2019 09:50:35 +0800 Subject: [PATCH] =?UTF-8?q?Update=20personal=5Fconferences=5Fcontroller.rb?= =?UTF-8?q?=20=E6=90=9C=E5=B0=8B=E5=8A=9F=E8=83=BD=E6=94=B9=E7=82=BA?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E7=A9=BA=E6=A0=BC=E5=8D=80=E5=88=86=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E8=A6=81=E6=90=9C=E5=B0=8B=E7=9A=84=E5=AD=97=E4=B8=94?= =?UTF-8?q?=E4=B8=8D=E5=88=86=E5=A4=A7=E5=B0=8F=E5=AF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/personal_conferences_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_conferences_controller.rb b/app/controllers/personal_conferences_controller.rb index 50536be..2043c41 100644 --- a/app/controllers/personal_conferences_controller.rb +++ b/app/controllers/personal_conferences_controller.rb @@ -40,7 +40,7 @@ class PersonalConferencesController < ApplicationController when "paper_types" writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.conference_paper_types.collect{|x| x.title}.join(', ').to_s, params[:keywords])} when "period" - writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.duration.include? params[:keywords]} + writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.duration, params[:keywords])} when "publication_date" writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.send("publication_date").strftime("%Y/%m").collect{|x| x.title}.join(', '), params[:keywords])} when "author_type"