From 96af616d2d88b6e71b9b2ead33229bd3e8ee0f0a Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 15 Aug 2019 11:10:55 +0800 Subject: [PATCH] Update personal_projects_controller.rb 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 7457a67..843dbd4 100644 --- a/app/controllers/personal_projects_controller.rb +++ b/app/controllers/personal_projects_controller.rb @@ -25,7 +25,7 @@ class PersonalProjectsController < ApplicationController when "project_type" projects_show = projects_temp.select {|value| search_all_words(value.send("project_type").title.to_s, params[:keywords])} when "project_title","default" - projects_show = projects_temp.select {|value| search_all_words(value.send("project_title").to_s), params[:keywords])} + projects_show = projects_temp.select {|value| search_all_words(value.send("project_title").to_s, params[:keywords])} when "period" projects_show = projects_temp.select {|value| search_all_words(value.send("duration").to_s, params[:keywords])} else