From 323d2c42c3782db9e30b37abb4787fe73d6d7c8d Mon Sep 17 00:00:00 2001
From: Oscar Del Ben
- Commenter:
+ Commenter:
<%= comment.commenter %>
- Comment:
+ Comment:
<%= comment.body %>
<%= link_to 'Destroy Comment', [comment.post, comment],
:confirm => 'Are you sure?',
diff --git a/guides/code/getting_started/app/views/comments/_form.html.erb b/guides/code/getting_started/app/views/comments/_form.html.erb
index d15bdd6b59..00cb3a08f0 100644
--- a/guides/code/getting_started/app/views/comments/_form.html.erb
+++ b/guides/code/getting_started/app/views/comments/_form.html.erb
@@ -1,13 +1,13 @@
<%= form_for([@post, @post.comments.build]) do |f| %>
-
<%= f.label :commenter %>
<%= f.label :body %>
<%= f.submit %>
-
<%= f.text_field :commenter %>
-
<%= f.text_area :body %>
-
- Commenter: - <%= comment.commenter %> -
- -- Comment: - <%= comment.body %> -
-<% end %> +<%= render @post.comments %>
- <%= f.label :commenter %>
- <%= f.text_field :commenter %>
-
- <%= f.label :body %>
- <%= f.text_area :body %>
-
- <%= f.submit %> -
-<% end %> +<%= render "comments/form" %> <%= link_to 'Edit Post', edit_post_path(@post) %> | <%= link_to 'Back to Posts', posts_path %> -- cgit v1.2.3