updates app to rails 4