Fixing Broken attachment_fu File Paths

Hello.

Any attachment_fu users out there that have updated their code?

The file system storage scheme has changed. The old way:

RAILS_ROOT/public/my_models/5/blah.jpg

Is now more like this:

RAILS_ROOT/public/my_models/0000/0005/blah.jpg

Has anyone written a script or anything to migrate between the two?
All of my images are now broken.

Anyone already solved this?

Hunter

Not sure if this will help but this article sounds similar to the
problem you are having:

http://www.almosteffortless.com/2007/03/25/working-with-attachment_fu/

Scott

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs