rails4 magic sauce