update to rails 4