From 76d0976ae80a485088372d1341776a08152f1406 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 1 Jan 2018 22:01:26 +0800 Subject: [PATCH] small fix for no skills --- app/controllers/recruitments_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/recruitments_controller.rb b/app/controllers/recruitments_controller.rb index 0db19c1..1fe783d 100644 --- a/app/controllers/recruitments_controller.rb +++ b/app/controllers/recruitments_controller.rb @@ -158,6 +158,7 @@ class RecruitmentsController < PseudoSessionController end if !job.skills.empty? skills = job.skills.collect{|skill| "#{skill}"} + skills = skills.join(" ") else skills = t("recruitment.not_available") end @@ -188,7 +189,7 @@ class RecruitmentsController < PseudoSessionController "location-title" => t("recruitment.location"), "location" => (!job.location_of_work.nil? && job.location_of_work != "" ? job.location_of_work : t("recruitment.not_available")), "skills-title" => t("recruitment.skills_title"), - "skills" => skills.join(" "), + "skills" => skills, "experience-title" => t("recruitment.experience_title"), "experience" => experience, "qualification-title" => t("recruitment.qualification"),