app/controllers/hyrax/dashboard/nest_collections_controller.rb
def remove_relationship_under
        authorize! :edit, form_params[:parent_id]

        if form.remove
          notice = I18n.t('removed_relationship', scope: 'hyrax.dashboard.nest_collections_form', child_title: form.child.title.first, parent_title: form.parent.title.first)
          redirect_to redirect_path(item: form.parent), notice: notice
        else
          redirect_to redirect_path(item: form.parent), flash: { error: form.errors.full_messages }
        end
      end
# remove a subcollection relationship from this collection
remove a subcollection relationship from this collection
remove a subcollection relationship from this collection
def remove_relationship_under
        authorize! :edit, form_params[:parent_id]
        if form.remove
          notice = I18n.t('removed_relationship', scope: 'hyrax.dashboard.nest_collections_form', child_title: form.child.title.first, parent_title: form.parent.title.first)
          redirect_to redirect_path(item: form.parent), notice: notice
        else
          redirect_to redirect_path(item: form.parent), flash: { error: form.errors.full_messages }
        end
      end
def remove_relationship_under authorize! :edit , form_params [ :parent_id ] if form . remove notice = I18n . t ( 'removed_relationship' , scope : 'hyrax.dashboard.nest_collections_form' , child_title : form . child . title . first , parent_title : form . parent . title . first ) redirect_to redirect_path ( item : form . parent ) , notice : notice else redirect_to redirect_path ( item : form . parent ) , flash : { error : form . errors . full_messages } end end
remove a subcollection relationship from this collection
remove a subcollection relationship from this collection