aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_comment.html.erb
blob: f7cbfaebfa81253400cfadeb53f0cd3c922bc788 (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.article, comment],
               method: :delete,
               data: { confirm: 'Are you sure?' } %>
</p>