teaching of rails