goooseman / rails-multimodel-upload-demo

Rails 4 app, which uses jquery-fileupload and paperclip to upload multiple photos from another models form.
8 stars 2 forks source link

Multiform fileupload demo with Ruby on Rails 4, jquery-fileupload-rails, bootstrap 3 and paperclip

When I was building my own project I got one problem: I needed one page, on which user creates a new models instance with params and add multiple photos, which are belong_to this model. Yes, I can use "multiple" tag for a file input, but I need to show user his photos before upload.
I really believe that it is a common usercase, but I didn't find any demo or tutorial to build this with jquery-file-upload. So I built it myself.

Attention:

You need ImageMagick to be installed on your system to run this. To install it on OSX with Homebrew use brew install imagemagick

Gems:

To use my demo:

To start from a scratch: