I want to install plugin for ajax upload in Rails 3.1.
How to do that? Just execute git clone
in vendor/
?
What about asset pipeline? I must specify some code like that in application.js
?
//= require vendor/file-upload
Do you know better plugin for ajax file upload, than this one?
https://github.com/valums/file-uploader
UPDATE
I want to upload file without clicking submit, so remotipart doesnt apply to that.
Instead of installing plugins under ./vendor (that's the old Rails way), you should look for a GEM which does the functionality, and add the Gem to the Gemfile, then run
bundle install
.e.g. add this to your ./Gemfile :
then run
bundle install
There are a couple of gems available for file-uploading, some of them support AJAX. e.g.:
Plugin Installation on Rails 3:
or
or