initialise rails