<td><%= link_to 'Show', patient %></td> <td><%= link_to 'Edit', edit_patient_path(patient) %></td> <td><%= link_to 'Destroy', patient, :confirm => 'Are you sure ?', :method => :delete %></td>
'<a href="/patients/2" onclick="if (confirm('Bent u zeker?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var s = document.createElement('input'); s.setAttribute('type', 'hidden'); s.setAttribute('name', 'authenticity_token'); s.setAttribute('value', 'fjixNIJpUvrXzuzryFqyGtY/wKnwOTwpcS0d8UQF6DE='); f.appendChild(s);f.submit(); };return false;">Wis</a>'
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.