app/uploaders/gallery_image_uploader.rb
# We want a name for the gallery at cloudinary
# and we will also use the convention name
We want a name for the gallery at cloudinary
and we will also use the convention name
We want a name for the gallery at cloudinary and we will also use the convention name
def public_id
    publicid = (common_root_path && !model.global) ? root_path + '/' : ''
    publicid += model.gallery ? model.gallery : 'gallery' 
    publicid += '/' + model.filename
    publicid.gsub(/[?!&\s+]/, '')
  end
def public_id publicid = ( common_root_path && ! model . global ) ? root_path + '/' : '' publicid += model . gallery ? model . gallery : 'gallery' publicid += '/' + model . filename publicid . gsub ( / [?!& \s +] / , '' ) end
We want a name for the gallery at cloudinary
and we will also use the convention name
We want a name for the gallery at cloudinary and we will also use the convention name
# use a default gallery if none has been specified