Rails-side: controller work delegated to models.