Tuesday, September 17, 2013

Uploading file using AJAX in Rails

Paperclip gem can be easily used in your rails application for uploading file. But to make it functional using ajax, we can use remotipart gem which works pretty smoothly with Paperclip gem. Just install the remotipart gem. Prepare your form using Paperclip for uploading file. Then add remote=>true in that form. And your form is ready to upload file using ajax. Implementation details can be found in the following links.

No comments: