diff options
Diffstat (limited to 'guides/code/getting_started/app/views/posts/show.html.erb')
-rw-r--r-- | guides/code/getting_started/app/views/posts/show.html.erb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/guides/code/getting_started/app/views/posts/show.html.erb b/guides/code/getting_started/app/views/posts/show.html.erb index a79fadfe4c..65809033ed 100644 --- a/guides/code/getting_started/app/views/posts/show.html.erb +++ b/guides/code/getting_started/app/views/posts/show.html.erb @@ -8,4 +8,11 @@ <%= @post.text %> </p> -<%= link_to 'Back', :action => :index %> +<h2>Comments</h2> +<%= render @post.comments %> + +<h2>Add a comment:</h2> +<%= render "comments/form" %> + +<%= link_to 'Edit Post', edit_post_path(@post) %> | +<%= link_to 'Back to Posts', posts_path %> |