rails 4 fix