# Fixing Broken attachment\_fu File Paths

**URL:** <https://www.ruby-forum.com/t/fixing-broken-attachment-fu-file-paths/91511>\
**Category:** Rails\
**Created:** [April 10, 2007, 12:52am UTC](https://www.ruby-forum.com/t/fixing-broken-attachment-fu-file-paths/91511 "2007-04-10T00:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [April 10, 2007, 12:52am UTC](https://www.ruby-forum.com/t/fixing-broken-attachment-fu-file-paths/91511/1 "2007-04-10T00:52:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [May 7, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/fixing-broken-attachment-fu-file-paths/91511/2 "2007-05-07T22:36:03Z")

</div>

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/](http://www.almosteffortless.com/2007/03/25/working-with-attachment_fu/)

Scott
