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.

Komentar

Postingan populer dari blog ini

EPrT English Proficiency Test Soal - soal

cara memunculkan dan menyembunyikan icon date, time, clock, volume, network, power battery, action center pada taskbar pada Windows 7