1

I am trying to edit user data in my application. I have edit button as below.

    <button class="btn btn-sm btn-default pull-right" data-toggle="modal" data-target="#contactEditFormModal" data-id="<%= t["id"] %>">
        Edit
    </button>

how can I pass this data-id to my modal in rails.

Dinu
  • 159
  • 1
  • 11

0 Answers0