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

10.58 Muhamad Akbar Bin Widayat 0 Comments

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.

0 komentar:

terimakasih komentarnya