We have a different approach to cloning of both hosts and host groups, instead we .dup in memory and render the "new" form.  The name is set to "" so the user is prompted to fill one in.  This way you also don't need error handling for .save below.