Changing to rails 4