Switch to rails 4