method of rails