Upgrading to rails 4