添加教师弹框的教师姓名

dev_forum
cxt 5 years ago
parent 3c7018b4c6
commit 3cf598eeec

@ -1,7 +1,7 @@
json.candidates do json.candidates do
json.array! @users do |user| json.array! @users do |user|
json.id user.id json.id user.id
json.name user.firstname + user.lastname json.name user.real_name
json.nickname user.nickname json.nickname user.nickname
json.school_name user.user_extension.school.try(:name) json.school_name user.user_extension.school.try(:name)
json.school_id user.user_extension.school.try(:id) json.school_id user.user_extension.school.try(:id)

Loading…
Cancel
Save