Upgraded to rails4