Fix rails installation

Fix rails installation