Hi, I was wondering if there was anyway to add a user’s id to the file
path of all images uploaded.
Currently I’m using the following function in my image model to set the
file path:
def full_filename(thumbnail = nil)
file_system_path = (thumbnail ? thumbnail_class :
self).attachment_options[:path_prefix].to_s
File.join(RAILS_ROOT, file_system_path, thumbnail_name_for(thumbnail))
end