title: pass data-id to the modal in rails
body: <p>I am trying to edit user data in my application. I have edit button as below. </p>
  
  <pre><code>    &lt;button class="btn btn-sm btn-default pull-right" data-toggle="modal" data-target="#contactEditFormModal" data-id="&lt;%= t["id"] %&gt;"&gt;
          Edit
      &lt;/button&gt;
  </code></pre>
  
  <p>how can I pass this data-id to my modal in rails.</p>