title: Data disable with is not working - rails
body: <p>I'm trying to disable a button on submit with data-disable-with but I can't seem to get it working on my form.</p>
  
  <p>Here is what I'm trying:</p>
  
  <pre><code>  &lt;%= submit_tag "Publish", { class: 'button', data: { disable_with: "Please wait.." } } %&gt;
  </code></pre>
  
  <p>The class is being applied but when I submit the form nothing gets disabled. What am I doing wrong?</p>