diff options
author | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-25 18:48:14 -0400 |
---|---|---|
committer | John Kelly Ferguson <hello@johnkellyferguson.com> | 2014-05-25 18:48:14 -0400 |
commit | 45072f34d27bda34b182f14f8b02d778d1648cce (patch) | |
tree | 66a21875edf8908997ba28f63a8d32f8cedd2a0b /guides/code/getting_started/app/views/comments | |
parent | 6c30717f8c182dc05f63779b3a9a532fb9076b05 (diff) | |
download | rails-45072f34d27bda34b182f14f8b02d778d1648cce.tar.gz rails-45072f34d27bda34b182f14f8b02d778d1648cce.tar.bz2 rails-45072f34d27bda34b182f14f8b02d778d1648cce.zip |
Rename Posts to Articles in Guides' Getting Started App, continuation of #15215 [ci skip]
Diffstat (limited to 'guides/code/getting_started/app/views/comments')
-rw-r--r-- | guides/code/getting_started/app/views/comments/_comment.html.erb | 4 | ||||
-rw-r--r-- | guides/code/getting_started/app/views/comments/_form.html.erb | 2 |
2 files changed, 3 insertions, 3 deletions
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 @@ <strong>Commenter:</strong> <%= comment.commenter %> </p> - + <p> <strong>Comment:</strong> <%= comment.body %> </p> <p> - <%= link_to 'Destroy Comment', [comment.post, comment], + <%= link_to 'Destroy Comment', [comment.article, comment], method: :delete, data: { confirm: 'Are you sure?' } %> </p> 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| %> <p> <%= f.label :commenter %><br /> <%= f.text_field :commenter %> |