# Merb and rmagick thumbnails

**URL:** <https://www.ruby-forum.com/t/merb-and-rmagick-thumbnails/130810>\
**Category:** Ruby\
**Created:** [March 3, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/merb-and-rmagick-thumbnails/130810 "2008-03-03T15:36:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schaf88](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@schaf88](https://www.ruby-forum.com/u/schaf88)\
**Post date:** [March 3, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/merb-and-rmagick-thumbnails/130810/1 "2008-03-03T15:36:34Z")

</div>

Hi  
I’m playing around with a merb app to upload images. The upload works  
fine and the images are copied from the temporary directory into an  
uploads directory in the merb root with the original filename. now i  
want to create thumbnails using RMagick, but when I add the code, I get  
an internal server error when i try to load page:

Internal server error 500  
uninitialized constant Photos::Photo

You can view my model, controller and views at here:  
[http://pastie.caboo.se/160545](http://pastie.caboo.se/160545)  
Thank you for your help  
Flo
