base rails setup