Forum: Ruby on Rails acts_as_attachment save file in folder named after models pa

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.
teesea (Guest)
on 2007-04-08 15:38
(Received via mailing list)
This is probably pretty easy, but I'm still a newb as far as ruby and
rails goes.

I am using the acts_as_attachment and would like to know how I go
about setting the path that the file is saved to so that it is saved
in a folder named after the models parent model id

Thanks in advance

teesea (Guest)
on 2007-04-09 17:06
(Received via mailing list)
After having another dig around found the answer so I thought I'd post

All you need to alter is the full_filename method in
file_system_methods.rb file to the path you want
This topic is locked and can not be replied to.