Ruby Plus #31: How to upload images in Rails 2.0

Posted in Development, Frameworks on June 29, 2008


Ruby Plus #31: How to upload images in Rails 2.0

In this screencast I will show you how easy it is to upload images in Rails using the Attachement_Fu plugin.You must install an Image Processor. ImageScience, RMagick or minimagick. I installed RMagick using this script. Here is the RMagick Installation FAQ.

Note: The public_filename method gives us the public path to the full-size file or the thumbnail if you pass the name of the thumbnail suffix (:thumb, in our case).

Watch Video Watch Video on External Site

Tags: Ruby, Ruby On Rails, Frameworks, Ruby Plus, Plugins, RMagick, Attachement_Fu, upload