upgraded to rails 4