app/controllers/annotator/annotator_store/annotations_controller.rb
# Only allow a trusted parameter 'white list' through.
Only allow a trusted parameter 'white list' through.
Only allow a trusted parameter ' white list ' through .
def annotation_params
    params.require(:annotation).permit(
        :tag_id, :uri, :post_id, :topic_id,
        :container, :src, :ext, :start, :end,
        :src, :shape, :units, :geometry,
        :text, :quote, :version, ranges_attributes: [:start, :end, :start_offset, :end_offset]
    )
  end
def annotation_params params . require ( :annotation ) . permit ( :tag_id , :uri , :post_id , :topic_id , :container , :src , :ext , :start , :end , :src , :shape , :units , :geometry , :text , :quote , :version , ranges_attributes : [ :start , :end , :start_offset , :end_offset ] ) end
Only allow a trusted parameter 'white list' through.
Only allow a trusted parameter ' white list ' through .
# VideoAnnotation # Image Annotation # TextAnnotation