Rails gem to give controllers logic to handle embedded associations