Initialize rails application