Forum: Ruby on Rails attachment_fu path

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
403ece33c07b1964f7247b735c2fa836?d=identicon&s=25 Dan German (nb88)
on 2007-07-20 22:59
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 :
  File.join(RAILS_ROOT, file_system_path, thumbnail_name_for(thumbnail))
This topic is locked and can not be replied to.