@ohadlevy, I'm not defining attributes (:puppetclass_ids, :config_group_ids).  I'm removing these keys from the params[:hostgroup] hash using `except!`