updating to rails4