update rails to version 4.0.1 and update other gems