Setup Rails environment