Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show post's comments

  • Loading branch information...
commit b467628aef2e1fe698f30a5168dc7a272b352623 1 parent 5d8f4cd
@prathe authored
View
1  app/views/comments/_comment.html.erb
@@ -0,0 +1 @@
+<%= content_tag :li, comment.content %>
View
4 app/views/posts/show.html.erb
@@ -10,6 +10,10 @@
<%= @post.content %>
</p>
+<ul>
+ <%= render @post.comments %>
+</ul>
+
<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>
Please sign in to comment.
Something went wrong with that request. Please try again.