Hi -
I am trying to dynamically create my partition folders via
attachment_fu. I have read about a hack that allows you to do this on
the attachment model:
:partition => lambda {|a| a.article_id}
Which passes the model's object into the lambda and uses the
'article_id' attribute as its directory name. However, this isn't
work for me. I think the lambda is simply evaluating as 'true' and
causing attachment_fu to simply do conventional directory creation on
my file system.
Anyone find a way to get this to work - or have a way to dynamically
create partitions from object attributes like 'a.name' etc..?
Any help appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---