Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tag: rails2
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 975 Bytes

Sample AJAX file upload in RoR

This is a sample application which intends to show how to make file uploads in RoR in an AJAX way without flash.

It's based in the code found here

Feel free to study the code, use it or modify as you want. No license, just enjoy it :)

Plugins it uses


  • Rails 2.3.x (I tested with rails 2.3.5 but I guess it should work with it's bigger brothers as well)

For running the tests

  • shoulda 2.11.1

  • factory_girl 1.2.3

How to make it work?

  • Clone it

    git clone git://
  • Migrate

    cd sample_image_upload
    rake db:create && rake db:migrate
  • Run-it!

Jump to Line
Something went wrong with that request. Please try again.