forgeplus/app/views/weapps/courses/edit.json.jbuilder

2 lines
94 B
Ruby

json.(@course, :id, :name, :credit, :end_date)
json.course_list_name @course.course_list&.name