Set up Rails environment