# Attachment\_fu

**URL:** <https://www.ruby-forum.com/t/attachment-fu/110029>\
**Category:** Rails\
**Created:** [July 21, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/attachment-fu/110029 "2007-07-21T17:16:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernando](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/779978/32.png) [@fernando](https://www.ruby-forum.com/u/fernando)\
**Post date:** [July 21, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/attachment-fu/110029/1 "2007-07-21T17:16:14Z")

</div>

I am getting a bizarre problem using attachment\_fu and I was wondering  
if anyone knows how to fix it/ why its happening.

Ive been following:  
[http://clarkware.com/cgi/blosxom/2007/02/24](http://clarkware.com/cgi/blosxom/2007/02/24)

and I am up and running as far as upload etc goes, but when it comes  
to display using:  
\<% for mugshot in @mugshots -%\>  
\<%= link\_to image\_tag(mugshot.public\_filename(:thumb)),  
mugshot.public\_filename %\>  
\<% end -%\>

I get two images, one is a thumbnail which links to the original file.  
That is what I want.  
html:  
[![Test_thumb](https://www.ruby-forum.com/image_uploads/0000/0001/test_thumb.JPG?1185027500)](https://www.ruby-forum.com/image_uploads/0000/0001/test.JPG)

but the other is:  
[![Test_thumb_thumb](https://www.ruby-forum.com/image_uploads/0000/0001/%20test_thumb_thumb.JPG)](https://www.ruby-forum.com/image_uploads/0000/0001/test_thumb.JPG)

does anyone know where on earth the ‘\_thumb\_thumb’ came from?  
and does anyone know how to solve this problem?

---

<div class="post-metadata">

**Author:** ![fernando](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/779978/32.png) [@fernando](https://www.ruby-forum.com/u/fernando)\
**Post date:** [July 21, 2007, 6:05pm UTC](https://www.ruby-forum.com/t/attachment-fu/110029/2 "2007-07-21T18:05:19Z")

</div>

On 7/21/07, fernando [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> \<%= link\_to image\_tag(mugshot.public\_filename(:thumb)),  
> [![Test_thumb_thumb](https://www.ruby-forum.com/image_uploads/0000/0001/%20test_thumb_thumb.JPG)](https://www.ruby-forum.com/image_uploads/0000/0001/test_thumb.JPG)
> 
> does anyone know where on earth the ‘\_thumb\_thumb’ came from?  
> and does anyone know how to solve this problem?

@mugshots has the thumbnail too. Filter it by selecting where  
parent\_id is null.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
