Image thumbnails


I am trying to create image thumbnails and found this script: Looks like image
is being scaled down and copied to cache folder, however nothing is
being displayed. I particularly don’t understand this piece of code:

cgi =
cgi.out(“type”=>“image/jpeg”) { @pic }
render :nothing => true

I guess it supposed to render @pic which holds the image file, but
what does render:nothing => true mean?


On Tue, Sep 15, 2009 at 1:30 PM, camokatu [email protected]

what does render:nothing => true mean?
It means don’t include the application layout, just send the image.

Greg D.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs