Upgraded to rails 4