Reputation: 5145
form_for @model, :remote => true, :html => {:multipart => true }
does not allow us to send file via ajax.
I have found this but it's not up to date and it relies on dependancies :
Anyone with up to date ressources ?
Upvotes: 0
Views: 471
Reputation: 408
I've used Uploadify in a recent application http://www.uploadify.com/ Some Rails specific notes here http://railstips.org/blog/archives/2009/07/21/uploadify-and-rails23/ I know you said Rails 3, but the concepts are the same.
Upvotes: 0
Reputation: 7451
This is example for uploading File on Rails 3 using Jquery.
Make use of it, it is simple
https://github.com/blueimp/jQuery-File-Upload/wiki/jQuery-File-Upload-for-Rails-3
Upvotes: 1