destroy action in controller and correction to generator