You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/courses/search_teacher_candidate.js...

11 lines
372 B

json.candidates do
json.array! @users do |user|
json.id user.id
json.name user.firstname + user.lastname
json.nickname user.nickname
json.school_name user.user_extension.school.try(:name)
json.school_id user.user_extension.school.try(:id)
json.added @course.course_member?(user.id, [1, 2, 3])
end
end
json.candidates_count @users_size