change rails version to 4