Intialize rails