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 %> diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index 7ad01ae636..8ea7c5ab6e 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -1428,12 +1428,12 @@ following into it:- Commenter: + Commenter: <%= comment.commenter %>
- Comment: + Comment: <%= comment.body %>
<%= notice %>
-- Name: - <%= @post.name %> -
- -- Title: + Title: <%= @post.title %>
- Content: - <%= @post.content %> + Text: + <%= @post.texthttp://beginningruby.org/ %>
<%= f.label :commenter %>
<%= f.text_field :commenter %>
-
<%= f.label :body %>
<%= f.text_area :body %>
-
<%= f.submit %> -
<%= f.label :commenter %>
<%= f.text_field :commenter %>
-
<%= f.label :body %>
<%= f.text_area :body %>
-
<%= f.submit %> -
<%= notice %>
-- Name: - <%= @post.name %> -
- -- Title: + Title: <%= @post.title %>
- Content: - <%= @post.content %> + Text: + <%= @post.texthttp://beginningruby.org/ %>
-