updating app to rails 4.1