On 18 November 2011 18:47, Frederick Cheung <[email protected]> wrote: > > > On Nov 18, 5:28 pm, Mauro <[email protected]> wrote: >> >> I've noticed that if I don't fill the file field then if I create a >> new document but without attaching any file then ajax works. >> If I attach a file in the file field then ajax doesn't work. > > Files can't be sent over ajax. There is the iframe trick which looks > like ajax (in that there is no full page reload) but is in fact just a > 'normal' form submission. Some js libraries (e.g. jquery.form if my > memory is correct) will even do this automatically for you.
I've resolved with remotipart gem. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

