# Acts\_as\_attachment - no thumbnails?

**URL:** <https://www.ruby-forum.com/t/acts-as-attachment-no-thumbnails/103431>\
**Category:** Rails\
**Created:** [May 5, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/acts-as-attachment-no-thumbnails/103431 "2007-05-05T21:59:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbeam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/258eb7/32.png) [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Post date:** [May 5, 2007, 9:59pm UTC](https://www.ruby-forum.com/t/acts-as-attachment-no-thumbnails/103431/1 "2007-05-05T21:59:26Z")

</div>

the full-size pics upload OK, but no thumbs or resizing. There are no  
errors or exceptions that I can see, just not getting any thumbnails.  
The DB column ‘thumbnail’ is always NULL

rmagick-1.15.6 is freshly installed.

I have the :thumbnails stuff setup per  
[http://weblog.techno-weenie.net/articles/acts\_as\_attachment/thumbnailing](http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing)

using a model like this:

class EventPic \< ActiveRecord::Base  
belongs\_to :event  
acts\_as\_attachment :storage =\> :file\_system, :max\_size =\>  
900.kilobytes, :content\_type =\> :image, :thumbnails =\> { :normal  
=\> ‘800\>’, :thumb =\> ‘150x150’ }  
validates\_as\_attachment  
end

and a controller something like:  
…  
@event = current\_user.events.find(params[:id])  
(1…3).each { |p|  
pic = ‘pic’+p.to\_s  
@event.pics \<\< EventPic.new(params[pic]) unless params[pic]  
[:uploaded\_data] == “”  
}  
@event.save!  
…

(users can upload up to 3 pics at a time to attach to an existing event)

anyone have an idea? is there an easy way to test rmagick (I am not  
familiar with it)

thanks  
Sam
