On Tue, Sep 15, 2009 at 1:30 PM, camokatu <[email protected]> wrote:
> I am trying to create image thumbnails and found this script:
> http://www.cleverleap.com/ruby-thumbnail-generator/. 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.new
> 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?

It means don't include the application layout, just send the image.

http://api.rubyonrails.org/classes/ActionController/Base.html#M000658


-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to