app/views/subjects/_index.html.erb in enju_subject-0.0.15 vs app/views/subjects/_index.html.erb in enju_subject-0.0.16
- old
+ new
@@ -22,10 +22,10 @@
<td>
<%- if can? :update, subject -%>
<%= link_to t('page.edit'), edit_subject_path(subject) -%>
<%- end -%>
<%- if can? :destroy, subject -%>
- <%= link_to t('page.destroy'), subject, :confirm => t('page.are_you_sure'), :method => :delete -%>
+ <%= link_to t('page.destroy'), subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
<%- end -%>
</td>
</tr>
<%- end -%>
</table>