Forum: Ruby on Rails Fixing Broken attachment_fu File Paths

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Hunter H. (Guest)
on 2007-04-10 02:52
(Received via mailing list)
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
Scott (Guest)
on 2007-05-08 00:36
(Received via mailing list)
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...

Scott
This topic is locked and can not be replied to.