finally updated to rails 4