2016-09-11

Prevent Double Clicks in Forms

In order to prevent users from creating double posts in your web form, simply change your form's submit method from:

submit "Save"

to:

submit "Save", data: { disable_with: "saving..." }

← Previous Post | Next Post →