should work with rails4