Upgraded app to rails 4.1