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
I hopefully this article is usefull.
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
Posting Komentar
terimakasih komentarnya