From dac27a8edfd624d9af032d3066763c257ea67189 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 29 Apr 2020 13:43:03 +0800 Subject: [PATCH] fix error --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 4cd3954..8904fd1 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -116,7 +116,7 @@ class PersonalJournalsController < ApplicationController 'url' => '/' + I18n.locale.to_s + params[:url], 'select_text' => select_text, 'search_text' => search_text, - 'search_value' => params[:keywords].gsub(/\"/,''), + 'search_value' => params[:keywords].to_s.gsub(/\"/,''), 'csrf_value' => csrf_value }, 'total_pages' => journal_papers_total_pages, 'choice' => choice