fixing the broken after matt updated to rails 4.1