Ruby On Rails prevent Double Ajax on click submit button when using remote true

Hi all,
You are ever to get double Ajax request when using remote true on submit form using Ruby on Rails.
I want to show you what we do first based on my experiences.

You only put :disable_with on your button submit form

  <%= f.submit "Save", disable_with: "Loading..." %>

I hopefully this article is usefull.

Comments

Popular posts from this blog

Riset Kebutuhan & Jasa Pembuatan Website UMKM (Riset Lapangan Jakarta Barat)

5 Nilai Inti (GCG) Wajib Sebelum Merancang Produk Digital

Kesalahan Pindah Blogspot ke Domain Pribadi Berujung Domain Blogspot Lenyap