updated to rails 4