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.
A7db9ec803b5895ae5f916a74e2db329?d=identicon&s=25 Hunter Hillegas (Guest)
on 2007-04-10 00: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
125639ddcc0b9119bb84e29416ace63a?d=identicon&s=25 Scott (Guest)
on 2007-05-07 22: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.