# Strange attachment\_fu problem: thumbnails limited to 1

**URL:** <https://www.ruby-forum.com/t/strange-attachment-fu-problem-thumbnails-limited-to-1/148285>\
**Category:** Rails\
**Created:** [September 11, 2008, 10:12am UTC](https://www.ruby-forum.com/t/strange-attachment-fu-problem-thumbnails-limited-to-1/148285 "2008-09-11T10:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [September 11, 2008, 10:12am UTC](https://www.ruby-forum.com/t/strange-attachment-fu-problem-thumbnails-limited-to-1/148285/1 "2008-09-11T10:12:56Z")

</div>

Hi,  
I am encountering a strange issue with attachment\_du: whatever classes  
of thumbnails I define, only one is recognized and accordingly  
processed when creating a new image.

For example: :thumbnails =\> {:thumb =\> “65x65”, :big =\> “548x548”}  
just produces a “big” thumbnail and the “thumb” thumbnail simply  
doesn’t exist.  
But even more strange, when I change the order of the thumbs  
declaration in the thumbnails hash it still produces just the “big”  
thumbnail. Changing the thumbnail class names or size declarations  
doesn’t have any influence.

Anyone has a clue what might be wrong here?

Here is the attachment\_fu relevnat model code:  
class Pic \< ActiveRecord::Base  
has\_attachment :content\_type =\> :image,  
:size =\> 0.kilobytes…50.megabytes,  
:storage =\> :file\_system,  
:path\_prefix =\>’/public/photos’,  
:thumbnails =\> { :thumb =\> “65x65”, :big =\> “548x548” }

validates\_as\_attachment

end
