rails 4 vs 3 issue