updating application to rails 4