Update rails to v4.0.0