app/controllers/archives_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 archive_params
      params.fetch(:archive, {}).permit [
        :author,
        :category_id,
        :created_begin_on,
        :created_end_on,
        :description,
        :enabled,
        :latitude,
        :license_id,
        :location,
        :longitude,
        :map_file,
        :name,
        :note,
        :owner,
        :represent_image,
        :tag_labels,
        { images: [] }
      ]
    end
def archive_params params . fetch ( :archive , { } ) . permit [ :author , :category_id , :created_begin_on , :created_end_on , :description , :enabled , :latitude , :license_id , :location , :longitude , :map_file , :name , :note , :owner , :represent_image , :tag_labels , { images : [ ] } ] 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 .