Ajax File or Image Uploading inside Ruby on Rails

by Melvin Ram

http://github.com/melvinram/ajax-image-upload/

While adding course covers to my BrainBank app, I put together a simple ruby on rails app that uses attachment_fu and responds_to_parent to upload an image. It should be useful if you’re thinking of added image uploading to your app.

CREDITS

{ 2 comments… read them below or add one }

Greg Leppert April 10, 2010 at 9:11 am

For those of you migrating to Rails 3, I’ve built a gem that makes implementing AJAX style file uploads relatively trivial to implement.

http://rubygems.org/gems/remotipart

halkazzar May 30, 2010 at 3:57 am

Hello! Thanks, for the script, it’s preatty clear for newbies as me.
But, while uploading an image thumbnails are not created.
Any ideas what I might miss here?

Leave a Comment