I've been trying to upload an image using ajax, but maybe I'm doing it wrong
<%= simple_form_for @note, remote: true do |f|%>
<%= f.text_area :content%>
<%= f.file_field :picture %>
<%= f.submit "save"%>
<%end%>
but every time I hit save... it is not doing the upload, it goes to the show action instead of displaying the alerts that I have in the file create.js.erb (it does have the multipart parameter in the form label. Is it possible to upload an image using this way? or should I check the jquery-file-upload library?
Thanks in advance
Javier