aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/app/views/comments/_comment.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/code/getting_started/app/views/comments/_comment.html.erb')
-rw-r--r--guides/code/getting_started/app/views/comments/_comment.html.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/guides/code/getting_started/app/views/comments/_comment.html.erb b/guides/code/getting_started/app/views/comments/_comment.html.erb
new file mode 100644
index 0000000000..4c3fbf26cd
--- /dev/null
+++ b/guides/code/getting_started/app/views/comments/_comment.html.erb
@@ -0,0 +1,15 @@
+<p>
+ <b>Commenter:</b>
+ <%= comment.commenter %>
+</p>
+
+<p>
+ <b>Comment:</b>
+ <%= comment.body %>
+</p>
+
+<p>
+ <%= link_to 'Destroy Comment', [comment.post, comment],
+ :confirm => 'Are you sure?',
+ :method => :delete %>
+</p>