Friday, November 18, 2011

Re: [Rails] Re: form remote only if new record.

On 18 November 2011 18:47, Frederick Cheung <frederick.cheung@gmail.com> wrote:
>
>
> On Nov 18, 5:28 pm, Mauro <mrsan...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate