Upgrade Rails from 3.2.17 to 4.0.4