upgrade app to rails 4