Initialize rails framework