update rails version to 4