forgeplus/app/views/courses/_course.json.jbuilder

3 lines
97 B
Ruby

json.extract! course, :id, :created_at, :updated_at
json.url course_url(course, format: :json)