upgrading app to rails 4.1