json.extract! teacher, :id, :name, :school, :subject, :place, :created_at, :updated_at json.url teacher_url(teacher, format: :json)