switch to rails 4