The institutionalization of separate schools in Canada West (Upper Canada before 1840) was secured by the Scott Act of 1863, but with the caveat that rural Catholic schools could only serve an area with a radius of 3 miles .