From 45072f34d27bda34b182f14f8b02d778d1648cce Mon Sep 17 00:00:00 2001 From: John Kelly Ferguson Date: Sun, 25 May 2014 18:48:14 -0400 Subject: Rename Posts to Articles in Guides' Getting Started App, continuation of #15215 [ci skip] --- guides/code/getting_started/app/views/comments/_comment.html.erb | 4 ++-- guides/code/getting_started/app/views/comments/_form.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/code/getting_started/app/views/comments') diff --git a/guides/code/getting_started/app/views/comments/_comment.html.erb b/guides/code/getting_started/app/views/comments/_comment.html.erb index 593493339e..f7cbfaebfa 100644 --- a/guides/code/getting_started/app/views/comments/_comment.html.erb +++ b/guides/code/getting_started/app/views/comments/_comment.html.erb @@ -2,14 +2,14 @@ Commenter: <%= comment.commenter %>

- +

Comment: <%= comment.body %>

- <%= link_to 'Destroy Comment', [comment.post, comment], + <%= link_to 'Destroy Comment', [comment.article, comment], method: :delete, data: { 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 00cb3a08f0..5850c41a17 100644 --- a/guides/code/getting_started/app/views/comments/_form.html.erb +++ b/guides/code/getting_started/app/views/comments/_form.html.erb @@ -1,4 +1,4 @@ -<%= form_for([@post, @post.comments.build]) do |f| %> +<%= form_for([@article, @article.comments.build]) do |f| %>

<%= f.label :commenter %>
<%= f.text_field :commenter %> -- cgit v1.2.3