aboutsummaryrefslogblamecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_comment.html.erb
blob: 593493339ef1da64d40d71f8d6611030277fab8b (plain) (tree)
1
2
3
4
5
6
7
8
9
   
                             

                          
 
   
                           

                     
 

                                                         

                                                    
    
<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>