From dcb98f4587a0226de6bf56e8556a87beddfbbcef Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 29 Apr 2020 13:47:42 +0800 Subject: [PATCH] fix error --- app/controllers/personal_projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_projects_controller.rb b/app/controllers/personal_projects_controller.rb index eeabb18..972a3f4 100644 --- a/app/controllers/personal_projects_controller.rb +++ b/app/controllers/personal_projects_controller.rb @@ -96,7 +96,7 @@ class PersonalProjectsController < ApplicationController 'url' => '/' + params[:locale] + 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' => projects_total_pages, 'choice' => choice