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

Pengembang Perangkat Lunak Membangun Karya untuk UMKM

Kesalahan Pindah Blogspot ke Domain Pribadi Berujung Domain Blogspot Lenyap

Episode 5 - Meramu Nilai - Nilai Inti pada Produk