Update rails to 4