rails 3 to rails 4