update to rails4