Set up rails environment