app/views/comments/_resource.html.erb in voluntary-0.1.0 vs app/views/comments/_resource.html.erb in voluntary-0.2.0
- old
+ new
@@ -9,8 +9,8 @@
<div class="actions">
<%= link_to t('comments.show.reply'), eval(
"new_#{resource.commentable_type.tableize.singularize}_comment_path(resource.commentable, comment: { parent_id: resource.id })"
), class: 'new_comment' %> |
<%= link_to t('general.edit'), edit_comment_path(resource), class: 'edit_comment' %> |
- <%= link_to t('general.destroy'), resource, confirm: t('general.questions.are_you_sure'), method: :delete, class: 'destroy_comment' %>
+ <%= link_to t('general.destroy'), resource, data: { confirm: t('general.questions.are_you_sure') }, method: :delete, class: 'destroy_comment' %>
</div>
</div>
\ No newline at end of file