rescue nil for experience_type

This commit is contained in:
manson 2014-07-15 19:01:46 +08:00
parent df97b18456
commit 698134007a
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class PersonalExperiencesController < ApplicationController
"organizationt_title" => experience.organizationt_title, "organizationt_title" => experience.organizationt_title,
"department" => experience.department, "department" => experience.department,
"job_title" => experience.job_title, "job_title" => experience.job_title,
"experience_type" => experience.experience_type.title, "experience_type" => (experience.experience_type.title rescue ""),
"language" => t(experience.language), "language" => t(experience.language),
"start_date" => experience.start_date, "start_date" => experience.start_date,
"end_date" => experience.end_date, "end_date" => experience.end_date,