app/controllers/hyrax/dashboard/nest_collections_controller.rb
# create and link a NEW subcollection under this collection, with this collection as parent
create and link a NEW subcollection under this collection, with this collection as parent
create and link a NEW subcollection under this collection with this collection as parent
def create_collection_under
        authorize! :deposit, form_params[:parent_id]
        if form.validate_add
          redirect_to new_dashboard_collection_path(collection_type_id: parent_type_id_for(form), parent_id: form.parent)
        else
          redirect_to redirect_path(item: form.parent), flash: { error: form.errors.full_messages }
        end
      end
def create_collection_under authorize! :deposit , form_params [ :parent_id ] if form . validate_add redirect_to new_dashboard_collection_path ( collection_type_id : parent_type_id_for ( form ) , parent_id : form . parent ) else redirect_to redirect_path ( item : form . parent ) , flash : { error : form . errors . full_messages } end end
create and link a NEW subcollection under this collection, with this collection as parent
create and link a NEW subcollection under this collection with this collection as parent