aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_comment.html.erb
blob: 593493339ef1da64d40d71f8d6611030277fab8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<p>
  <strong>Commenter:</strong>
  <%= comment.commenter %>
</p>
 
<p>
  <strong>Comment:</strong>
  <%= comment.body %>
</p>

<p>
  <%= link_to 'Destroy Comment', [comment.post, comment],
               method: :delete,
               data: { confirm: 'Are you sure?' } %>
</p>