app/controllers/extracts_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def extract_params
      params.require(:extract).permit(
        :repository_id,
        :verbatim_anatomical_origin,
        :year_made,
        :month_made,
        :day_made,
        roles_attributes: [
          :id,
          :_destroy,
          :type,
          :person_id,
          :position,
          person_attributes: [
            :last_name,
            :first_name,
            :suffix, :prefix
          ]
        ],
        identifiers_attributes: [
          :id,
          :namespace_id,
          :identifier,
          :type,
          :_destroy
        ],
        data_attributes_attributes: [
          :id,
          :_destroy,
          :controlled_vocabulary_term_id,
          :type,
          :attribute_subject_id,
          :attribute_subject_type,
          :value
        ],
        protocol_relationships_attributes: [
          :id,
          :_destroy,
          :protocol_id
        ],
        origin_relationships_attributes: [
          :id,
          :_destroy,
          :old_object_id,
          :old_object_type
        ]
      )
    end
def extract_params params . require ( :extract ) . permit ( :repository_id , :verbatim_anatomical_origin , :year_made , :month_made , :day_made , roles_attributes : [ :id , :_destroy , :type , :person_id , :position , person_attributes : [ :last_name , :first_name , :suffix , :prefix ] ] , identifiers_attributes : [ :id , :namespace_id , :identifier , :type , :_destroy ] , data_attributes_attributes : [ :id , :_destroy , :controlled_vocabulary_term_id , :type , :attribute_subject_id , :attribute_subject_type , :value ] , protocol_relationships_attributes : [ :id , :_destroy , :protocol_id ] , origin_relationships_attributes : [ :id , :_destroy , :old_object_id , :old_object_type ] ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .