Hi all. I’ve done a little google search, but doesn’t find anything
(with “attachment_fu default path”) that could help me in changing
attachment_fu’s default path.
Davi,
You need to over write
Technoweenie::Attachment_fu::Backends::FileSystemBackend#partitioned_path
to change this. To do this, just write a function in your model like
this
def partitioned_path(*args) #what ever you want it to do
end
you should probably think hard about doing this – especially about
directory size and scalablity. If you decide you want to, be sure to
check out the original and understand how it works before you write
anything. Hope this helps.
Paul Saieg
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.