Generate works controller