rails4 sampling