Update personal_projects_controller.rb

fix error
This commit is contained in:
chiu 2019-08-15 11:10:55 +08:00
parent f6e2d47c35
commit 96af616d2d
1 changed files with 1 additions and 1 deletions

View File

@ -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